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 ¶ added in v1.14.10
func NewClientConn(params ClientConnParams) (*grpc.ClientConn, error)
NewClientConn for gRPC.
func NewServiceClient ¶ added in v1.15.7
func NewServiceClient(params ServiceClientParams) v1.ServiceClient
NewServiceClient for gRPC.
Types ¶
type ClientConnParams ¶ added in v1.14.10
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 ¶ added in v1.15.7
type ServiceClientParams struct { fx.In Conn *grpc.ClientConn }
ServiceClientParams for gRPC.
type Task ¶ added in v1.15.7
type Task struct {
// contains filtered or unexported fields
}
Task for gRPC.
type TaskParams ¶ added in v1.15.7
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.