bifrost

package
v1.0.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBifrostServiceEndpointRequest = errors.New("request has only one: endpoint.Request")
	ErrResponseNull                         = errors.New("response is null")
	ErrInvalidResponse                      = errors.New("response is invalid")
	ErrUnknownResponse                      = errors.New("unknown response")
)

Functions

func NewBifrostClientEndpoints

func NewBifrostClientEndpoints(conn *grpc.ClientConn) *bifrostClientEndpoints

Types

type Client

type Client struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func NewClient

func NewClient(svrAddr string) (*Client, error)

func NewClientFromConsul

func NewClientFromConsul(consulHost string, consulPort uint16) (*Client, error)

func (Client) GetConfig

func (ue Client) GetConfig(ctx context.Context, token, srvName string) (data []byte, err error)

func (Client) Status

func (ue Client) Status(ctx context.Context, token string) (data []byte, err error)

func (Client) UpdateConfig

func (ue Client) UpdateConfig(ctx context.Context, token, svrName string, reqData []byte, params ...string) (data []byte, err error)

func (Client) ViewConfig

func (ue Client) ViewConfig(ctx context.Context, token, svrName string) (data []byte, err error)

func (Client) ViewStatistics

func (ue Client) ViewStatistics(ctx context.Context, token, svrName string) (data []byte, err error)

func (Client) WatchLog

func (ue Client) WatchLog(ctx context.Context, token, svrName, logName string) (logWatcher WatchClient, err error)

type WatchClient

type WatchClient interface {
	GetDataChan() <-chan []byte
	GetErrChan() <-chan error
	Close() error
}

Jump to

Keyboard shortcuts

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