grpc

package
v1.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Unlicense Imports: 14 Imported by: 0

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.

func Register

func Register(lc fx.Lifecycle, params RegisterParams)

Register client.

Types

type Client added in v1.14.10

type Client struct {
	// contains filtered or unexported fields
}

Client for v1.

func (*Client) Perform added in v1.14.10

func (c *Client) Perform(ctx context.Context) error

Perform getting config.

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.

Directories

Path Synopsis
logger
zap
trace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL