grpc

package
v1.5.16 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v1.2.0

func NewServer(params ServerParams) v1.ServiceServer

NewServer for gRPC.

func Register

func Register(params RegisterParams) error

Register server.

Types

type RegisterParams

type RegisterParams struct {
	fx.In

	Lifecycle       fx.Lifecycle
	GRPCServer      *grpc.Server
	HTTPServer      *http.Server
	GRPCConfig      *grpc.Config
	TransportConfig *transport.Config
	Logger          *zap.Logger
	Tracer          opentracing.Tracer
	Metrics         *prometheus.ClientMetrics
	MigrateConfig   *migrate.Config
	Migrator        migrator.Migrator
}

RegisterParams for gRPC.

type Server added in v1.2.0

type Server struct {
	v1.UnimplementedServiceServer
	// contains filtered or unexported fields
}

Server for gRPC.

func (*Server) Migrate added in v1.2.0

func (s *Server) Migrate(ctx context.Context, req *v1.MigrateRequest) (*v1.MigrateResponse, error)

Migrate for gRPC.

type ServerParams added in v1.2.0

type ServerParams struct {
	Config   *migrate.Config
	Migrator migrator.Migrator
}

ServerParams for gRPC.

Jump to

Keyboard shortcuts

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