Documentation
¶
Index ¶
- func AuthContext(ctx context.Context, token string) context.Context
- func WithHostPort(hostPort string) func(*clientOpts)
- func WithLogger(l *zerolog.Logger) func(*clientOpts)
- func WithTLS(tls *tls.Config) func(*clientOpts)
- func WithToken(token string) func(*clientOpts)
- type GRPCClient
- type GRPCClientFactory
- type GRPCClientOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHostPort ¶
func WithHostPort(hostPort string) func(*clientOpts)
func WithLogger ¶
Types ¶
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func NewGRPCClient ¶
func NewGRPCClient(fs ...GRPCClientOpt) (*GRPCClient, error)
func (*GRPCClient) Admin ¶
func (c *GRPCClient) Admin() admincontracts.AdminServiceClient
type GRPCClientFactory ¶
type GRPCClientFactory struct {
// contains filtered or unexported fields
}
func NewGRPCClientFactory ¶
func NewGRPCClientFactory(fs ...GRPCClientOpt) *GRPCClientFactory
func (*GRPCClientFactory) NewGRPCClient ¶
func (f *GRPCClientFactory) NewGRPCClient(token string) (*GRPCClient, error)
type GRPCClientOpt ¶
type GRPCClientOpt func(*clientOpts)
Click to show internal directories.
Click to hide internal directories.