cmd

package
v0.2201.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package cmd implements the commands for MKVS interoperability test helpers.

Index

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

func RegisterProtoServer(parentCmd *cobra.Command)

Register registers the grpc-server sub-command and all of it's children.

func RootCommand

func RootCommand() *cobra.Command

RootCommand returns the root (top level) cobra.Command.

Types

type ApplyRequest added in v0.2103.0

type ApplyRequest []RPCRequest

Sigh, the Rust crate insists on sending args as an array.

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, response *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

Sigh, the Rust crate insists on sending args as an array.

type GetRequest added in v0.2103.0

type GetRequest []RPCRequest

Sigh, the Rust crate insists on sending args as an array.

type IterateRequest added in v0.2103.0

type IterateRequest []RPCRequest

Sigh, the Rust crate insists on sending args as an array.

type RPCRequest added in v0.2103.0

type RPCRequest struct {
	Payload []byte `json:"payload"`
}

Don't ask. I think this is stupid too, and I wrote it.

type RPCResponse added in v0.2103.0

type RPCResponse struct {
	Payload []byte `json:"payload"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL