Documentation
¶
Index ¶
Constants ¶
View Source
const RequestIDKey = "X-Request-Id"
RequestIDKey requestID的键
Variables ¶
This section is empty.
Functions ¶
func NewGrpcClientConn ¶
NewGrpcClientConn 获取GrpcConn,根据配置
Types ¶
type BaseService ¶
type BaseService struct { boot.BaseInstance Listener net.Listener // 网络监听 GrpcServer *grpc.Server // GRPC服务端 // contains filtered or unexported fields }
BaseService service的基础服务
func (*BaseService) Init ¶
func (s *BaseService) Init() error
func (*BaseService) Start ¶
func (s *BaseService) Start() error
func (*BaseService) Stop ¶
func (s *BaseService) Stop()
Click to show internal directories.
Click to hide internal directories.