Documentation ¶
Index ¶
- func GogrpcStart(reg IgogrpcRegister)
- func InjectGogrpcServer(s *GogrpcServer)
- func LoadGogrpcServer() baseiface.ISingleton
- func Start(reg IgogrpcRegister, dto *baseconfig.RpcServerDto)
- type GogrpcServer
- func (server *GogrpcServer) Init(serverDto *baseconfig.RpcServerDto) micro.Service
- func (server *GogrpcServer) ReadCfg() *baseconfig.RpcServerDto
- func (server *GogrpcServer) RegisterGrpc() IgogrpcRegister
- func (server *GogrpcServer) Run()
- func (server *GogrpcServer) RunServer(serverDto *baseconfig.RpcServerDto)
- func (server *GogrpcServer) SetRegisterGrpc(registerGrpc IgogrpcRegister)
- type IgogrpcRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GogrpcStart ¶
func GogrpcStart(reg IgogrpcRegister)
func InjectGogrpcServer ¶
func InjectGogrpcServer(s *GogrpcServer)
func LoadGogrpcServer ¶
func LoadGogrpcServer() baseiface.ISingleton
func Start ¶
func Start(reg IgogrpcRegister, dto *baseconfig.RpcServerDto)
Types ¶
type GogrpcServer ¶
type GogrpcServer struct { basedto.BaseEntitySingle // contains filtered or unexported fields }
func DefaultGogrpcServer ¶
func DefaultGogrpcServer() *GogrpcServer
func NewGogrpcServer ¶
func NewGogrpcServer(r IgogrpcRegister) *GogrpcServer
func (*GogrpcServer) Init ¶
func (server *GogrpcServer) Init(serverDto *baseconfig.RpcServerDto) micro.Service
func (*GogrpcServer) ReadCfg ¶
func (server *GogrpcServer) ReadCfg() *baseconfig.RpcServerDto
func (*GogrpcServer) RegisterGrpc ¶
func (server *GogrpcServer) RegisterGrpc() IgogrpcRegister
func (*GogrpcServer) Run ¶
func (server *GogrpcServer) Run()
func (*GogrpcServer) RunServer ¶
func (server *GogrpcServer) RunServer(serverDto *baseconfig.RpcServerDto)
func (*GogrpcServer) SetRegisterGrpc ¶
func (server *GogrpcServer) SetRegisterGrpc(registerGrpc IgogrpcRegister)
type IgogrpcRegister ¶
type IgogrpcRegister interface {
RegisterGrpc(service micro.Service)
}
@Title 文件名称: grpcregister.go @Description 描述: rpc业务服务注册
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
Click to show internal directories.
Click to hide internal directories.