api

package
v0.0.0-...-e92273e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	SubCommand = byte(iota)
	UnSubCommand
	PutKey
	ReadKey
	ReadPrefixKey
	DeleteKey
	PutKeys
	ReadKeys
)

Variables

This section is empty.

Functions

func EncodeRequestWriteCommand

func EncodeRequestWriteCommand(c interface{}) (command []byte, err error)

Types

type ClientInfo

type ClientInfo struct {
	*proto.SubOption
	ClientID    string
	NodeAddress string
}

type MatchSubTopicRequest

type MatchSubTopicRequest struct {
	Topic string
}

type MatchSubTopicResponse

type MatchSubTopicResponse struct {
	Topic map[string]int32
}

type MatchTopicRequest

type MatchTopicRequest struct {
	Topic string
}

type MatchTopicResponse

type MatchTopicResponse struct {
	Client []*ClientInfo
}

type ReadKeyRequest

type ReadKeyRequest struct {
	Key string
}

type ReadKeyResponse

type ReadKeyResponse struct {
	Key    string
	Value  string
	Exists bool
}

type ReadPrefixKeyRequest

type ReadPrefixKeyRequest struct {
	PrefixKey string
}

type ReadPrefixKeyResponse

type ReadPrefixKeyResponse struct {
	PrefixKey string
	Value     map[string]string
}

Jump to

Keyboard shortcuts

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