rpc

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

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