Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(client v1.ServiceClient, cfg *client.Config, tracer opentracing.Tracer, logger *zap.Logger) task.Task
NewClient for gRPC.
func NewClientConn ¶ added in v1.14.10
func NewClientConn(lc fx.Lifecycle, params ClientConnParams) (*grpc.ClientConn, error)
NewClientConn for gRPC.
Types ¶
type Client ¶ added in v1.14.10
type Client struct {
// contains filtered or unexported fields
}
Client for v1.
type ClientConnParams ¶ added in v1.14.10
type ClientConnParams struct { fx.In Config *sgrpc.Config Logger *zap.Logger Tracer opentracing.Tracer Client *client.Config Version version.Version }
ClientConnParams for gRPC.
type RegisterParams ¶
type RegisterParams struct { fx.In Conn *grpc.ClientConn Logger *zap.Logger Tracer opentracing.Tracer Client *client.Config }
RegisterParams for gRPC.
Click to show internal directories.
Click to hide internal directories.