rpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DetermineTLSOption added in v1.0.0

func DetermineTLSOption(cfg settings.Configuration) (grpc.ServerOption, error)

func RegisterRPCServer

func RegisterRPCServer(param Param) error

Types

type GRPCRegister

type GRPCRegister interface {
	Register(*grpc.Server) error
}

func GRPCRegisterFromFn

func GRPCRegisterFromFn(fn func(*grpc.Server) error) GRPCRegister

type Param

type Param struct {
	fx.In

	Lifecycle     fx.Lifecycle
	Logger        *zap.Logger
	GRPCRegisters []GRPCRegister `group:"grpc_registers"`
	Config        settings.Configuration
}

Jump to

Keyboard shortcuts

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