Documentation ¶
Index ¶
- type ConfClient
- func (c *ConfClient) Close()
- func (c *ConfClient) Connect() (err error)
- func (c *ConfClient) GetAccount(ctx context.Context, serviceName string) (pb.Account, error)
- func (c *ConfClient) GetClient() pb.ConfClient
- func (c *ConfClient) GetCurrency(ctx context.Context) ([]pb.Currency, error)
- func (c *ConfClient) GetGrpcAddr(ctx context.Context, serviceName string) (string, error)
- func (c *ConfClient) GetNetStatus(ctx context.Context) bool
- func (c *ConfClient) GetServices(ctx context.Context) ([]pb.BetService, error)
- func (c *ConfClient) Ping(ctx context.Context) error
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 (*ConfClient) GetClient ¶
func (c *ConfClient) GetClient() pb.ConfClient
func (*ConfClient) GetCurrency ¶
func (*ConfClient) GetGrpcAddr ¶
func (*ConfClient) GetNetStatus ¶
func (c *ConfClient) GetNetStatus(ctx context.Context) bool
func (*ConfClient) GetServices ¶
func (c *ConfClient) GetServices(ctx context.Context) ([]pb.BetService, error)
Click to show internal directories.
Click to hide internal directories.