-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support query and tx commands for servers
- Loading branch information
1 parent
cfa334b
commit b788bbb
Showing
6 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package serverv2 | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
var ServerContextKey = struct{}{} | ||
|
||
// Config is the config of the main server. | ||
type Config struct { | ||
// StartBlock indicates if the server should block or not. | ||
// If true, the server will block until the context is canceled. | ||
StartBlock bool | ||
} | ||
|
||
// CLIConfig defines the CLI configuration for a module server. | ||
type CLIConfig struct { | ||
// Command defines the main command of a module server. | ||
Command []*cobra.Command | ||
// Query defines the query commands of a module server. | ||
// Those commands are meant to be added in the root query command. | ||
Query []*cobra.Command | ||
// Tx defines the tx commands of a module server. | ||
// Those commands are meant to be added in the root tx command. | ||
Tx []*cobra.Command | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters