cmd

package
v0.2202.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 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)

RegisterProtoServer 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

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

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"`
}

Jump to

Keyboard shortcuts

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