Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(endpoint endpoint.EndPointServer, log *zap.Logger) proto.UserServer
NewGRPCServer 创建GRPC服务 @param endpoint 端点服务对象 @param log 日志对象 @return proto.UserServer 用户服务对象
func RequestGrpcLogin ¶
RequestGrpcLogin 处理客户端的登录请求
func ResponseGrpcLogin ¶
ResponseGrpcLogin 处理服务器登录响应
Types ¶
type LogErrorHandler ¶
type LogErrorHandler struct {
// contains filtered or unexported fields
}
LogErrorHandler 错误日志处理器
func NewZapLogErrorHandler ¶
func NewZapLogErrorHandler(logger *zap.Logger) *LogErrorHandler
NewZapLogErrorHandler 创建错误日志处理器对象
Click to show internal directories.
Click to hide internal directories.