Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure the Cobra command and the RESTful API server (+ calling protocol) #25

Closed
4 tasks done
namseonu opened this issue Oct 9, 2023 · 2 comments
Closed
4 tasks done
Assignees
Labels
feature New feature or request

Comments

@namseonu
Copy link
Member

namseonu commented Oct 9, 2023

Is your feature request related to a problem? Please describe.
For example, such the quics-client, the execution of the protocol server should be in after the command 'start'.

Describe the solution you'd like

  • Setup the cobra command
  • Implement some RESTful API using HTTP/3
  • Connect the cobra command and RESTful API
  • Start protocol server with qis listen (example) command.
@namseonu namseonu added the feature New feature or request label Oct 9, 2023
@namseonu namseonu self-assigned this Oct 9, 2023
@namseonu namseonu added this to the Basic server setup milestone Oct 9, 2023
@namseonu
Copy link
Member Author

Backup (not used)

Commands

qis: Root command (meaning quic-s)

qis start: Start quic-s server
qis stop: Stop quic-s server
qis listen: Listen quic-s protocol

qis show: Show quic-s server information (needed options)
qis show --client --id <client-UUID>: Show client information
qis show --client --all: Show all clients information
qis show --dir <directory-path>: Show directory information
qis show --dir --all: Show all directories information
qis show --file <file-path>: Show file information
qis show --file --all: Show all files information

qis init: Initialize quic-s server (needed options)
qis init --client --id <client-UUID>: Initialize client
qis init --client --all: Initialize all clients
qis init --dir <directory-path>: Initialize directory
qis init --dir --all: Initialize all directories
qis init --file <file-path>: Initialize file
qis init --file --all: Initialize all files


Options & Short Options

--all: All option
-a: All short option

--id: ID option
-i: ID short option

--client: Client option
-c: Client short option

--dir: Directory option
-d: Directory short option

--file: File option
-f: File short option

@namseonu
Copy link
Member Author

Changed (in use)

Commands

qis: Root command (meaning quic-s)

qis start: Start quic-s server
qis stop: Stop quic-s server
qis listen: Listen quic-s protocol

qis show: Show quic-s server information (needed options)
qis show client --id <client-UUID>: Show client information
qis show client --all: Show all clients information
qis show dir <directory-path>: Show directory information
qis show dir --all: Show all directories information
qis show file <file-path>: Show file information
qis show file --all: Show all files information

qis disconnect: Initialize quic-s server (needed options)
qis disconnect client --id <client-UUID>: Initialize client
qis disconnect client --all: Initialize all clients
qis disconnect dir <directory-path>: Initialize directory
qis disconnect dir --all: Initialize all directories
qis disconnect file <file-path>: Initialize file
qis disconnect file --all: Initialize all files


Options & Short Options

--all: All option
-a: All short option

--id: ID option
-i: ID short option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

No branches or pull requests

1 participant