Documentation
¶
Index ¶
- Variables
- func AuthServerHttpService_Check_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func AuthServerHttpService_Login_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func AuthServerTcpService_Check_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func AuthServerTcpService_Login_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func RegisterAuthServerHttpService(s server.Service, svr AuthServerHttpService)
- func RegisterAuthServerTcpService(s server.Service, svr AuthServerTcpService)
- type AuthServerHttpClientProxy
- type AuthServerHttpClientProxyImpl
- type AuthServerHttpService
- type AuthServerTcpClientProxy
- type AuthServerTcpClientProxyImpl
- type AuthServerTcpService
- type CheckCodeReq
- type CheckCodeRsp
- func (*CheckCodeRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CheckCodeRsp) GetIsPass() bool
- func (x *CheckCodeRsp) GetRet() *RetMsg
- func (*CheckCodeRsp) ProtoMessage()
- func (x *CheckCodeRsp) ProtoReflect() protoreflect.Message
- func (x *CheckCodeRsp) Reset()
- func (x *CheckCodeRsp) String() string
- type LoginReq
- type LoginRsp
- type RetMsg
- type UnimplementedAuthServerHttp
- type UnimplementedAuthServerTcp
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthServerHttpServer_ServiceDesc = server.ServiceDesc{ ServiceName: "trpc.mac.authservice.auth_server_http", HandlerType: ((*AuthServerHttpService)(nil)), Methods: []server.Method{ { Name: "/api/auth/login", Func: AuthServerHttpService_Login_Handler, }, { Name: "/api/auth/check", Func: AuthServerHttpService_Check_Handler, }, { Name: "/trpc.mac.authservice.auth_server_http/Login", Func: AuthServerHttpService_Login_Handler, }, { Name: "/trpc.mac.authservice.auth_server_http/Check", Func: AuthServerHttpService_Check_Handler, }, }, }
AuthServerHttpServer_ServiceDesc descriptor for server.RegisterService.
View Source
var AuthServerTcpServer_ServiceDesc = server.ServiceDesc{ ServiceName: "trpc.mac.authservice.auth_server_tcp", HandlerType: ((*AuthServerTcpService)(nil)), Methods: []server.Method{ { Name: "/trpc.mac.authservice.auth_server_tcp/Login", Func: AuthServerTcpService_Login_Handler, }, { Name: "/trpc.mac.authservice.auth_server_tcp/Check", Func: AuthServerTcpService_Check_Handler, }, }, }
AuthServerTcpServer_ServiceDesc descriptor for server.RegisterService.
View Source
var File_auth_service_proto protoreflect.FileDescriptor
View Source
var NewAuthServerHttpClientProxy = func(opts ...client.Option) AuthServerHttpClientProxy { return &AuthServerHttpClientProxyImpl{client: client.DefaultClient, opts: opts} }
View Source
var NewAuthServerTcpClientProxy = func(opts ...client.Option) AuthServerTcpClientProxy { return &AuthServerTcpClientProxyImpl{client: client.DefaultClient, opts: opts} }
Functions ¶
func AuthServerHttpService_Check_Handler ¶
func AuthServerHttpService_Check_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func AuthServerHttpService_Login_Handler ¶
func AuthServerHttpService_Login_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func AuthServerTcpService_Check_Handler ¶
func AuthServerTcpService_Check_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func AuthServerTcpService_Login_Handler ¶
func AuthServerTcpService_Login_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func RegisterAuthServerHttpService ¶
func RegisterAuthServerHttpService(s server.Service, svr AuthServerHttpService)
RegisterAuthServerHttpService registers service.
func RegisterAuthServerTcpService ¶
func RegisterAuthServerTcpService(s server.Service, svr AuthServerTcpService)
RegisterAuthServerTcpService registers service.
Types ¶
type AuthServerHttpClientProxy ¶
type AuthServerHttpClientProxy interface { Login(ctx context.Context, req *LoginReq, opts ...client.Option) (rsp *LoginRsp, err error) // @alias=/api/auth/login Check(ctx context.Context, req *CheckCodeReq, opts ...client.Option) (rsp *CheckCodeRsp, err error) // @alias=/api/auth/check }
AuthServerHttpClientProxy defines service client proxy
type AuthServerHttpClientProxyImpl ¶
type AuthServerHttpClientProxyImpl struct {
// contains filtered or unexported fields
}
func (*AuthServerHttpClientProxyImpl) Check ¶
func (c *AuthServerHttpClientProxyImpl) Check(ctx context.Context, req *CheckCodeReq, opts ...client.Option) (*CheckCodeRsp, error)
type AuthServerHttpService ¶
type AuthServerHttpService interface { Login(ctx context.Context, req *LoginReq) (*LoginRsp, error) // @alias=/api/auth/login Check(ctx context.Context, req *CheckCodeReq) (*CheckCodeRsp, error) // @alias=/api/auth/check }
AuthServerHttpService defines service.
type AuthServerTcpClientProxy ¶
type AuthServerTcpClientProxy interface { Login(ctx context.Context, req *LoginReq, opts ...client.Option) (rsp *LoginRsp, err error) Check(ctx context.Context, req *CheckCodeReq, opts ...client.Option) (rsp *CheckCodeRsp, err error) }
AuthServerTcpClientProxy defines service client proxy
type AuthServerTcpClientProxyImpl ¶
type AuthServerTcpClientProxyImpl struct {
// contains filtered or unexported fields
}
func (*AuthServerTcpClientProxyImpl) Check ¶
func (c *AuthServerTcpClientProxyImpl) Check(ctx context.Context, req *CheckCodeReq, opts ...client.Option) (*CheckCodeRsp, error)
type AuthServerTcpService ¶
type AuthServerTcpService interface { Login(ctx context.Context, req *LoginReq) (*LoginRsp, error) Check(ctx context.Context, req *CheckCodeReq) (*CheckCodeRsp, error) }
AuthServerTcpService defines service.
type CheckCodeReq ¶
type CheckCodeReq struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*CheckCodeReq) Descriptor
deprecated
func (*CheckCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckCodeReq.ProtoReflect.Descriptor instead.
func (*CheckCodeReq) GetCode ¶
func (x *CheckCodeReq) GetCode() string
func (*CheckCodeReq) ProtoMessage ¶
func (*CheckCodeReq) ProtoMessage()
func (*CheckCodeReq) ProtoReflect ¶
func (x *CheckCodeReq) ProtoReflect() protoreflect.Message
func (*CheckCodeReq) Reset ¶
func (x *CheckCodeReq) Reset()
func (*CheckCodeReq) String ¶
func (x *CheckCodeReq) String() string
type CheckCodeRsp ¶
type CheckCodeRsp struct { Ret *RetMsg `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` IsPass bool `protobuf:"varint,2,opt,name=is_pass,json=isPass,proto3" json:"is_pass,omitempty"` // contains filtered or unexported fields }
func (*CheckCodeRsp) Descriptor
deprecated
func (*CheckCodeRsp) Descriptor() ([]byte, []int)
Deprecated: Use CheckCodeRsp.ProtoReflect.Descriptor instead.
func (*CheckCodeRsp) GetIsPass ¶
func (x *CheckCodeRsp) GetIsPass() bool
func (*CheckCodeRsp) GetRet ¶
func (x *CheckCodeRsp) GetRet() *RetMsg
func (*CheckCodeRsp) ProtoMessage ¶
func (*CheckCodeRsp) ProtoMessage()
func (*CheckCodeRsp) ProtoReflect ¶
func (x *CheckCodeRsp) ProtoReflect() protoreflect.Message
func (*CheckCodeRsp) Reset ¶
func (x *CheckCodeRsp) Reset()
func (*CheckCodeRsp) String ¶
func (x *CheckCodeRsp) String() string
type LoginReq ¶
type LoginReq struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUserName ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginRsp ¶
type LoginRsp struct { Ret *RetMsg `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginRsp) Descriptor
deprecated
func (*LoginRsp) ProtoMessage ¶
func (*LoginRsp) ProtoMessage()
func (*LoginRsp) ProtoReflect ¶
func (x *LoginRsp) ProtoReflect() protoreflect.Message
type RetMsg ¶
type RetMsg struct { RetCode string `protobuf:"bytes,1,opt,name=ret_code,json=retCode,proto3" json:"ret_code,omitempty"` RetMsg string `protobuf:"bytes,2,opt,name=ret_msg,json=retMsg,proto3" json:"ret_msg,omitempty"` // contains filtered or unexported fields }
func (*RetMsg) Descriptor
deprecated
func (*RetMsg) GetRetCode ¶
func (*RetMsg) ProtoMessage ¶
func (*RetMsg) ProtoMessage()
func (*RetMsg) ProtoReflect ¶
func (x *RetMsg) ProtoReflect() protoreflect.Message
type UnimplementedAuthServerHttp ¶
type UnimplementedAuthServerHttp struct{}
func (*UnimplementedAuthServerHttp) Check ¶
func (s *UnimplementedAuthServerHttp) Check(ctx context.Context, req *CheckCodeReq) (*CheckCodeRsp, error)
type UnimplementedAuthServerTcp ¶
type UnimplementedAuthServerTcp struct{}
func (*UnimplementedAuthServerTcp) Check ¶
func (s *UnimplementedAuthServerTcp) Check(ctx context.Context, req *CheckCodeReq) (*CheckCodeRsp, error)
Click to show internal directories.
Click to hide internal directories.