auth_service

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 (*AuthServerHttpClientProxyImpl) Login

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 (*AuthServerTcpClientProxyImpl) Login

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) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUserName

func (x *LoginReq) GetUserName() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use LoginRsp.ProtoReflect.Descriptor instead.

func (*LoginRsp) GetCode

func (x *LoginRsp) GetCode() string

func (*LoginRsp) GetRet

func (x *LoginRsp) GetRet() *RetMsg

func (*LoginRsp) ProtoMessage

func (*LoginRsp) ProtoMessage()

func (*LoginRsp) ProtoReflect

func (x *LoginRsp) ProtoReflect() protoreflect.Message

func (*LoginRsp) Reset

func (x *LoginRsp) Reset()

func (*LoginRsp) String

func (x *LoginRsp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RetMsg.ProtoReflect.Descriptor instead.

func (*RetMsg) GetRetCode

func (x *RetMsg) GetRetCode() string

func (*RetMsg) GetRetMsg

func (x *RetMsg) GetRetMsg() string

func (*RetMsg) ProtoMessage

func (*RetMsg) ProtoMessage()

func (*RetMsg) ProtoReflect

func (x *RetMsg) ProtoReflect() protoreflect.Message

func (*RetMsg) Reset

func (x *RetMsg) Reset()

func (*RetMsg) String

func (x *RetMsg) String() string

type UnimplementedAuthServerHttp

type UnimplementedAuthServerHttp struct{}

func (*UnimplementedAuthServerHttp) Check

func (*UnimplementedAuthServerHttp) Login

type UnimplementedAuthServerTcp

type UnimplementedAuthServerTcp struct{}

func (*UnimplementedAuthServerTcp) Check

func (*UnimplementedAuthServerTcp) Login

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL