def

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Zlib Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultClient

func NewDefaultClient(sn server.Node, points server.EndPoints) (service.Client, error)

Types

type DefaultClient

type DefaultClient struct {
	resolver2.Builder

	ServiceNode server.Node
	// contains filtered or unexported fields
}

func (*DefaultClient) Address

func (cc *DefaultClient) Address() string

Address Client interface

func (*DefaultClient) Get

func (cc *DefaultClient) Get(key kv.Key) ([]*kv.Data, error)

Get Config interface

func (*DefaultClient) GetConfig added in v0.1.2

func (cc *DefaultClient) GetConfig() kv.Config

GetConfig Client interface

func (*DefaultClient) Resolve

func (cc *DefaultClient) Resolve(serviceNode server.Node) []builder.Address

func (*DefaultClient) Set

func (cc *DefaultClient) Set(data kv.Data) error

Set Config interface

type DefaultServer

type DefaultServer struct {
}

func (*DefaultServer) Get

func (d *DefaultServer) Get(key kv.Key) ([]*kv.Data, error)

func (*DefaultServer) GetConfig added in v0.1.2

func (d *DefaultServer) GetConfig() kv.Config

func (*DefaultServer) GetHealthCheck

func (d *DefaultServer) GetHealthCheck() service.Health

func (*DefaultServer) IsGRpc

func (d *DefaultServer) IsGRpc() bool

func (*DefaultServer) IsHttp

func (d *DefaultServer) IsHttp() bool

func (*DefaultServer) IsTcp

func (d *DefaultServer) IsTcp() bool

func (*DefaultServer) IsTtl

func (d *DefaultServer) IsTtl() bool

func (*DefaultServer) Set

func (d *DefaultServer) Set(data kv.Data) error

func (*DefaultServer) Start

func (d *DefaultServer) Start()

func (*DefaultServer) Stop

func (d *DefaultServer) Stop()

Jump to

Keyboard shortcuts

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