bootstrap

package
v0.0.0-...-2e7796a Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetClientFailureDetector

func ResetClientFailureDetector()

Types

type Client

type Client struct {
	Id     int
	Config configs.Root
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientId int, c configs.Root) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Get

func (c *Client) Get(key string) (Response, error)

func (*Client) Put

func (c *Client) Put(key, value string) (Response, error)

func (*Client) Run

func (c *Client) Run() error

type Replica

type Replica struct {
	Id     int
	Config configs.Root
	// contains filtered or unexported fields
}

func NewReplica

func NewReplica(srvId int, c configs.Root) *Replica

func (*Replica) Close

func (r *Replica) Close() error

func (*Replica) Run

func (r *Replica) Run() error

type Response

type Response string

Jump to

Keyboard shortcuts

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