Documentation ¶
Index ¶
- func NewDefaultClient(sn server.Node, points server.EndPoints) (service.Client, error)
- type DefaultClient
- type DefaultServer
- func (d *DefaultServer) Get(key kv.Key) ([]*kv.Data, error)
- func (d *DefaultServer) GetConfig() kv.Config
- func (d *DefaultServer) GetHealthCheck() service.Health
- func (d *DefaultServer) IsGRpc() bool
- func (d *DefaultServer) IsHttp() bool
- func (d *DefaultServer) IsTcp() bool
- func (d *DefaultServer) IsTtl() bool
- func (d *DefaultServer) Set(data kv.Data) error
- func (d *DefaultServer) Start()
- func (d *DefaultServer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultClient ¶
type DefaultClient struct { resolver2.Builder ServiceNode server.Node // contains filtered or unexported fields }
func (*DefaultClient) GetConfig ¶ added in v0.1.2
func (cc *DefaultClient) GetConfig() kv.Config
GetConfig Client interface
type DefaultServer ¶
type DefaultServer struct { }
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) Start ¶
func (d *DefaultServer) Start()
func (*DefaultServer) Stop ¶
func (d *DefaultServer) Stop()
Click to show internal directories.
Click to hide internal directories.