Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdRegisterFinder ¶
type EtcdRegisterFinder struct {
// contains filtered or unexported fields
}
type GRPCServer ¶
type GRPCServer struct { log.InvokeLog HandlerFunc HandlerFunc // contains filtered or unexported fields }
func NewGRPCServer ¶
func NewGRPCServer(name string, conf *config.RpcServerConfig) (*GRPCServer, error)
func (*GRPCServer) AddServiceHandler ¶ added in v1.1.32
func (svr *GRPCServer) AddServiceHandler(f HandlerFunc)
add服务处理handler
func (*GRPCServer) AddServiceRegister ¶
func (svr *GRPCServer) AddServiceRegister(r IServiceRegister)
add服务注册中心
func (*GRPCServer) Run ¶
func (svr *GRPCServer) Run() error
type HandlerFunc ¶
type IServiceRegister ¶
服务注册者 接口
func NewEtcdSrvRegister ¶
func NewEtcdSrvRegister(etcdAddr string) (IServiceRegister, error)
Click to show internal directories.
Click to hide internal directories.