grpc

package
v1.90.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 15 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
	GRPC      *grpc.Server
	Mux       *runtime.ServeMux
	Client    *v1c.Config
	Logger    *zap.Logger
	Tracer    trace.Tracer
	Meter     metric.Meter
	Server    v1.ServiceServer
}

RegisterParams for gRPC.

type Server

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

Server for gRPC.

func (*Server) GenerateIdentifiers added in v1.8.0

GetIdentifiers for gRPC.

func (*Server) MapIdentifiers added in v1.8.0

func (s *Server) MapIdentifiers(ctx context.Context, req *v1.MapIdentifiersRequest) (*v1.MapIdentifiersResponse, error)

MapIdentifiers for gRPC.

type ServerParams

type ServerParams struct {
	fx.In

	GeneratorConfig *generator.Config
	MapperConfig    *mapper.Config
	Generators      generator.Generators
}

ServerParams for gRPC.

Jump to

Keyboard shortcuts

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