Documentation ¶
Overview ¶
Package cmd implements the commands for MKVS interoperability test helpers.
Index ¶
- func Execute()
- func RegisterProtoServer(parentCmd *cobra.Command)
- func RootCommand() *cobra.Command
- type ApplyRequest
- type ApplyResponse
- type Database
- func (db *Database) Apply(request ApplyRequest, _ *ApplyResponse) error
- func (db *Database) SyncGet(request GetRequest, response *RPCResponse) error
- func (db *Database) SyncGetPrefixes(request GetPrefixesRequest, response *RPCResponse) error
- func (db *Database) SyncIterate(request IterateRequest, response *RPCResponse) error
- type GetPrefixesRequest
- type GetRequest
- type IterateRequest
- type RPCRequest
- type RPCResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute spawns the main entry point after handling the command line arguments.
func RegisterProtoServer ¶
RegisterProtoServer registers the grpc-server sub-command and all of it's children.
func RootCommand ¶
RootCommand returns the root (top level) cobra.Command.
Types ¶
type ApplyRequest ¶ added in v0.2103.0
type ApplyRequest []RPCRequest
ApplyRequest and family are arrays because that's what Rust sends.
type ApplyResponse ¶ added in v0.2103.0
type ApplyResponse struct{}
type Database ¶ added in v0.2103.0
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Apply ¶ added in v0.2103.0
func (db *Database) Apply(request ApplyRequest, _ *ApplyResponse) error
func (*Database) SyncGet ¶ added in v0.2103.0
func (db *Database) SyncGet(request GetRequest, response *RPCResponse) error
func (*Database) SyncGetPrefixes ¶ added in v0.2103.0
func (db *Database) SyncGetPrefixes(request GetPrefixesRequest, response *RPCResponse) error
func (*Database) SyncIterate ¶ added in v0.2103.0
func (db *Database) SyncIterate(request IterateRequest, response *RPCResponse) error
type GetPrefixesRequest ¶ added in v0.2103.0
type GetPrefixesRequest []RPCRequest
type GetRequest ¶ added in v0.2103.0
type GetRequest []RPCRequest
type IterateRequest ¶ added in v0.2103.0
type IterateRequest []RPCRequest
type RPCRequest ¶ added in v0.2103.0
type RPCRequest struct {
Payload []byte `json:"payload"`
}
RPCRequest should not be asked about, as the author also thinks it is stupid.
type RPCResponse ¶ added in v0.2103.0
type RPCResponse struct {
Payload []byte `json:"payload"`
}
Click to show internal directories.
Click to hide internal directories.