Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchOpts ¶
func PatchOpts(l log.Logger, opts []grpc.ServerOption, server *conf.Server) []grpc.ServerOption
PatchOpts Patch grpc options with given service name and configs
Types ¶
type ServiceRegister ¶
type ServiceRegister interface {
Register(server *grpc.Server, middleware ...middleware.Middleware)
}
ServiceRegister register grpc handler into grpc server
func ChainServiceRegister ¶
func ChainServiceRegister(r ...ServiceRegister) ServiceRegister
type ServiceRegisterFunc ¶
type ServiceRegisterFunc func(server *grpc.Server, middleware ...middleware.Middleware)
func (ServiceRegisterFunc) Register ¶
func (f ServiceRegisterFunc) Register(server *grpc.Server, middleware ...middleware.Middleware)
Click to show internal directories.
Click to hide internal directories.