grpc

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

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
	GeneratorConfig *generator.Config
}

RegisterParams for gRPC.

type Server

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

Server for gRPC.

func (*Server) GetIdentifiers

func (s *Server) GetIdentifiers(ctx context.Context, req *v1.GetIdentifiersRequest) (*v1.GetIdentifiersResponse, error)

GetIdentifiers for gRPC.

type ServerParams

type ServerParams struct {
	Config *generator.Config
}

ServerParams for gRPC.

Jump to

Keyboard shortcuts

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