demojsonrpc

package
v0.0.0-...-9b09b75 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: CC-BY-4.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stress

func Stress(port, endpoint string, keys, vals [][]byte)

Types

type KVStoreJSONRPC

type KVStoreJSONRPC struct {
	// contains filtered or unexported fields
}

func (*KVStoreJSONRPC) Put

func (s *KVStoreJSONRPC) Put(r PutRequest, resp *PutResponse) error

Register publishes in the server the set of methods of the receiver value that satisfy the following conditions:

- exported method of exported type - two arguments, both of exported type - the second argument is a pointer - one return value, of type error

type PutRequest

type PutRequest struct {
	Key   []byte
	Value []byte
}

type PutResponse

type PutResponse struct {
	Header *ResponseHeader
}

type ResponseHeader

type ResponseHeader struct {
	Exist bool
	Value []byte
}

Jump to

Keyboard shortcuts

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