Documentation ¶
Index ¶
- func Close(client any)
- func CloseAwait(client any)
- func GetConsumers() []string
- type ClientConn
- func (cc *ClientConn) Close() error
- func (cc *ClientConn) Connect()
- func (cc *ClientConn) GetMethodConfig(method string) grpc.MethodConfig
- func (cc *ClientConn) GetState() connectivity.State
- func (cc *ClientConn) Invoke(ctx goContext.Context, method string, args, reply interface{}, ...) (err error)
- func (cc *ClientConn) NewStream(ctx goContext.Context, desc *grpc.StreamDesc, method string, ...) (grpc.ClientStream, error)
- func (cc *ClientConn) ResetConnectBackoff()
- func (cc *ClientConn) Target() string
- func (cc *ClientConn) WaitForStateChange(ctx goContext.Context, sourceState connectivity.State) bool
- type ClientGenerateFun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsumers ¶ added in v0.1.21
func GetConsumers() []string
Types ¶
type ClientConn ¶ added in v0.1.5
func (*ClientConn) Close ¶ added in v0.1.5
func (cc *ClientConn) Close() error
func (*ClientConn) Connect ¶ added in v0.1.5
func (cc *ClientConn) Connect()
func (*ClientConn) GetMethodConfig ¶ added in v0.1.5
func (cc *ClientConn) GetMethodConfig(method string) grpc.MethodConfig
func (*ClientConn) GetState ¶ added in v0.1.5
func (cc *ClientConn) GetState() connectivity.State
func (*ClientConn) Invoke ¶ added in v0.1.5
func (cc *ClientConn) Invoke(ctx goContext.Context, method string, args, reply interface{}, opts ...grpc.CallOption) (err error)
func (*ClientConn) NewStream ¶ added in v0.1.5
func (cc *ClientConn) NewStream(ctx goContext.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)
func (*ClientConn) ResetConnectBackoff ¶ added in v0.1.5
func (cc *ClientConn) ResetConnectBackoff()
func (*ClientConn) Target ¶ added in v0.1.5
func (cc *ClientConn) Target() string
func (*ClientConn) WaitForStateChange ¶ added in v0.1.5
func (cc *ClientConn) WaitForStateChange(ctx goContext.Context, sourceState connectivity.State) bool
type ClientGenerateFun ¶ added in v0.1.11
func ClientAuto ¶
func ClientAuto[t any](fun func(cc grpc.ClientConnInterface) t) ClientGenerateFun[t]
func NewClient ¶
func NewClient[t any](serviceName string, fun func(cc grpc.ClientConnInterface) t) ClientGenerateFun[t]
Click to show internal directories.
Click to hide internal directories.