config_client

package
v0.0.0-...-cd02152 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfClient

type ConfClient struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, log *zap.SugaredLogger) *ConfClient

func (*ConfClient) Close

func (c *ConfClient) Close()

func (*ConfClient) Connect

func (c *ConfClient) Connect() (err error)

func (*ConfClient) GetAccount

func (c *ConfClient) GetAccount(ctx context.Context, serviceName string) (pb.Account, error)

func (*ConfClient) GetClient

func (c *ConfClient) GetClient() pb.ConfClient

func (*ConfClient) GetCurrency

func (c *ConfClient) GetCurrency(ctx context.Context) ([]pb.Currency, error)

func (*ConfClient) GetGrpcAddr

func (c *ConfClient) GetGrpcAddr(ctx context.Context, serviceName string) (string, error)

func (*ConfClient) GetNetStatus

func (c *ConfClient) GetNetStatus(ctx context.Context) bool

func (*ConfClient) GetServices

func (c *ConfClient) GetServices(ctx context.Context) ([]pb.BetService, error)

func (*ConfClient) Ping

func (c *ConfClient) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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