client

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const StoreString = "store"

StoreString store string

Variables

View Source
var Default = &Client{}

Default default client

Functions

func SetStore

func SetStore(c *StoreService)

SetStore set store client

Types

type Client

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

Client client

func (*Client) Init

func (e *Client) Init(opts ...Option)

Init init

func (*Client) Store

func (e *Client) Store() *StoreService

Store get store client

type Option

type Option func(*Options)

Option set options

func WithStore

func WithStore(c *StoreService) Option

WithStore set store client

type Options

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

Options options

func SetDefault

func SetDefault() Options

SetDefault set default balance

type StoreService

type StoreService struct {
	grpc.Service
	// contains filtered or unexported fields
}

StoreService store service client

func GetStore

func GetStore() *StoreService

GetStore get store client

func NewStore

func NewStore(c grpc.Service) *StoreService

NewStore new a store client

func Store

func Store() *StoreService

Store client

func (*StoreService) GetClient

func (e *StoreService) GetClient() pb.StoreClient

GetClient get client

func (StoreService) String

func (StoreService) String() string

String string

Jump to

Keyboard shortcuts

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