Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Delete(ctx context.Context, key string) (bool, error)
- func (c *Client) Get(ctx context.Context, key string) ([]byte, error)
- func (c *Client) GetServers(ctx context.Context) ([]Server, error)
- func (c *Client) Set(ctx context.Context, key string, value []byte) (bool, error)
- type Config
- type GetEnv
- type MOKV
- type Server
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to a mökv cluster.
func (*Client) GetServers ¶
GetServers returns all nodes in the cluster.
type Config ¶
type Config struct {
DataDir string
NodeName string
BindAddr string
RPCPort int
MetricsPort int
StartJoinAddrs []string
Bootstrap bool
LogLevel string
}
Config holds the configuration parameters for the MOKV server node.
type MOKV ¶
type MOKV struct {
// contains filtered or unexported fields
}
MOKV represents the main server instance orchestrating gRPC, Raft, and Discovery services.
Click to show internal directories.
Click to hide internal directories.