Documentation ¶
Index ¶
- func NewClientConn(params ClientConnParams) (*grpc.ClientConn, error)
- func NewServiceClient(params ServiceClientParams) v1.ServiceClient
- func NewTask(params TaskParams) task.Task
- func Register(params RegisterParams)
- type ClientConnParams
- type RegisterParams
- type ServiceClientParams
- type Task
- type TaskParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientConn ¶
func NewClientConn(params ClientConnParams) (*grpc.ClientConn, error)
NewClientConn for gRPC.
func NewServiceClient ¶
func NewServiceClient(params ServiceClientParams) v1.ServiceClient
NewServiceClient for gRPC.
Types ¶
type ClientConnParams ¶
type ClientConnParams struct { fx.In Lifecycle fx.Lifecycle Config *sgrpc.Config Logger *zap.Logger Tracer opentracing.Tracer Client *client.Config Metrics *prometheus.ClientMetrics }
ClientConnParams for gRPC.
type RegisterParams ¶
RegisterParams for gRPC.
type ServiceClientParams ¶
type ServiceClientParams struct { fx.In Conn *grpc.ClientConn }
ServiceClientParams for gRPC.
type TaskParams ¶
type TaskParams struct { fx.In Client v1.ServiceClient Config *client.Config Tracer opentracing.Tracer Logger *zap.Logger }
TaskParams for gRPC.
Click to show internal directories.
Click to hide internal directories.