Documentation ¶
Index ¶
- Variables
- func RegisterAuth1Server(s grpc.ServiceRegistrar, srv Auth1Server)
- type Auth1Client
- type Auth1Server
- type LoginResultReply
- func (*LoginResultReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResultReply) GetAtk() string
- func (x *LoginResultReply) GetRtk() string
- func (*LoginResultReply) ProtoMessage()
- func (x *LoginResultReply) ProtoReflect() protoreflect.Message
- func (x *LoginResultReply) Reset()
- func (x *LoginResultReply) String() string
- type LoginUidpwRequest
- func (*LoginUidpwRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUidpwRequest) GetPw() []byte
- func (x *LoginUidpwRequest) GetSiteKey() string
- func (x *LoginUidpwRequest) GetUid() string
- func (x *LoginUidpwRequest) GetVer() string
- func (*LoginUidpwRequest) ProtoMessage()
- func (x *LoginUidpwRequest) ProtoReflect() protoreflect.Message
- func (x *LoginUidpwRequest) Reset()
- func (x *LoginUidpwRequest) String() string
- type LogoutReply
- type RtokenRequest
- func (*RtokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RtokenRequest) GetRtk() string
- func (x *RtokenRequest) GetSiteKey() string
- func (*RtokenRequest) ProtoMessage()
- func (x *RtokenRequest) ProtoReflect() protoreflect.Message
- func (x *RtokenRequest) Reset()
- func (x *RtokenRequest) String() string
- type SiteJwtSecretReply
- func (*SiteJwtSecretReply) Descriptor() ([]byte, []int)deprecated
- func (x *SiteJwtSecretReply) GetJwtSecret() []byte
- func (*SiteJwtSecretReply) ProtoMessage()
- func (x *SiteJwtSecretReply) ProtoReflect() protoreflect.Message
- func (x *SiteJwtSecretReply) Reset()
- func (x *SiteJwtSecretReply) String() string
- type SiteJwtSecretRequest
- func (*SiteJwtSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SiteJwtSecretRequest) GetSiteKey() string
- func (*SiteJwtSecretRequest) ProtoMessage()
- func (x *SiteJwtSecretRequest) ProtoReflect() protoreflect.Message
- func (x *SiteJwtSecretRequest) Reset()
- func (x *SiteJwtSecretRequest) String() string
- type UnimplementedAuth1Server
- func (UnimplementedAuth1Server) GetSiteJwtSecret(context.Context, *SiteJwtSecretRequest) (*SiteJwtSecretReply, error)
- func (UnimplementedAuth1Server) LoginUidpw(context.Context, *LoginUidpwRequest) (*LoginResultReply, error)
- func (UnimplementedAuth1Server) LogoutUser(context.Context, *RtokenRequest) (*LogoutReply, error)
- func (UnimplementedAuth1Server) RefreshUser(context.Context, *RtokenRequest) (*LoginResultReply, error)
- type UnsafeAuth1Server
Constants ¶
This section is empty.
Variables ¶
var Auth1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rpcapi.Auth1", HandlerType: (*Auth1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSiteJwtSecret", Handler: _Auth1_GetSiteJwtSecret_Handler, }, { MethodName: "LoginUidpw", Handler: _Auth1_LoginUidpw_Handler, }, { MethodName: "RefreshUser", Handler: _Auth1_RefreshUser_Handler, }, { MethodName: "LogoutUser", Handler: _Auth1_LogoutUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rpcapi/auth1.proto", }
Auth1_ServiceDesc is the grpc.ServiceDesc for Auth1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_rpcapi_auth1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuth1Server ¶
func RegisterAuth1Server(s grpc.ServiceRegistrar, srv Auth1Server)
Types ¶
type Auth1Client ¶
type Auth1Client interface { GetSiteJwtSecret(ctx context.Context, in *SiteJwtSecretRequest, opts ...grpc.CallOption) (*SiteJwtSecretReply, error) LoginUidpw(ctx context.Context, in *LoginUidpwRequest, opts ...grpc.CallOption) (*LoginResultReply, error) RefreshUser(ctx context.Context, in *RtokenRequest, opts ...grpc.CallOption) (*LoginResultReply, error) LogoutUser(ctx context.Context, in *RtokenRequest, opts ...grpc.CallOption) (*LogoutReply, error) }
Auth1Client is the client API for Auth1 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuth1Client ¶
func NewAuth1Client(cc grpc.ClientConnInterface) Auth1Client
type Auth1Server ¶
type Auth1Server interface { GetSiteJwtSecret(context.Context, *SiteJwtSecretRequest) (*SiteJwtSecretReply, error) LoginUidpw(context.Context, *LoginUidpwRequest) (*LoginResultReply, error) RefreshUser(context.Context, *RtokenRequest) (*LoginResultReply, error) LogoutUser(context.Context, *RtokenRequest) (*LogoutReply, error) // contains filtered or unexported methods }
Auth1Server is the server API for Auth1 service. All implementations must embed UnimplementedAuth1Server for forward compatibility
type LoginResultReply ¶ added in v0.0.2
type LoginResultReply struct { Rtk string `protobuf:"bytes,1,opt,name=rtk,proto3" json:"rtk,omitempty"` Atk string `protobuf:"bytes,2,opt,name=atk,proto3" json:"atk,omitempty"` // contains filtered or unexported fields }
func (*LoginResultReply) Descriptor
deprecated
added in
v0.0.2
func (*LoginResultReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginResultReply.ProtoReflect.Descriptor instead.
func (*LoginResultReply) GetAtk ¶ added in v0.0.2
func (x *LoginResultReply) GetAtk() string
func (*LoginResultReply) GetRtk ¶ added in v0.0.2
func (x *LoginResultReply) GetRtk() string
func (*LoginResultReply) ProtoMessage ¶ added in v0.0.2
func (*LoginResultReply) ProtoMessage()
func (*LoginResultReply) ProtoReflect ¶ added in v0.0.2
func (x *LoginResultReply) ProtoReflect() protoreflect.Message
func (*LoginResultReply) Reset ¶ added in v0.0.2
func (x *LoginResultReply) Reset()
func (*LoginResultReply) String ¶ added in v0.0.2
func (x *LoginResultReply) String() string
type LoginUidpwRequest ¶ added in v0.0.2
type LoginUidpwRequest struct { SiteKey string `protobuf:"bytes,1,opt,name=siteKey,proto3" json:"siteKey,omitempty"` Ver string `protobuf:"bytes,2,opt,name=ver,proto3" json:"ver,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` Pw []byte `protobuf:"bytes,4,opt,name=pw,proto3" json:"pw,omitempty"` // contains filtered or unexported fields }
func (*LoginUidpwRequest) Descriptor
deprecated
added in
v0.0.2
func (*LoginUidpwRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginUidpwRequest.ProtoReflect.Descriptor instead.
func (*LoginUidpwRequest) GetPw ¶ added in v0.0.2
func (x *LoginUidpwRequest) GetPw() []byte
func (*LoginUidpwRequest) GetSiteKey ¶ added in v0.0.2
func (x *LoginUidpwRequest) GetSiteKey() string
func (*LoginUidpwRequest) GetUid ¶ added in v0.0.2
func (x *LoginUidpwRequest) GetUid() string
func (*LoginUidpwRequest) GetVer ¶ added in v0.0.2
func (x *LoginUidpwRequest) GetVer() string
func (*LoginUidpwRequest) ProtoMessage ¶ added in v0.0.2
func (*LoginUidpwRequest) ProtoMessage()
func (*LoginUidpwRequest) ProtoReflect ¶ added in v0.0.2
func (x *LoginUidpwRequest) ProtoReflect() protoreflect.Message
func (*LoginUidpwRequest) Reset ¶ added in v0.0.2
func (x *LoginUidpwRequest) Reset()
func (*LoginUidpwRequest) String ¶ added in v0.0.2
func (x *LoginUidpwRequest) String() string
type LogoutReply ¶ added in v0.0.2
type LogoutReply struct {
// contains filtered or unexported fields
}
func (*LogoutReply) Descriptor
deprecated
added in
v0.0.2
func (*LogoutReply) Descriptor() ([]byte, []int)
Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.
func (*LogoutReply) ProtoMessage ¶ added in v0.0.2
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) ProtoReflect ¶ added in v0.0.2
func (x *LogoutReply) ProtoReflect() protoreflect.Message
func (*LogoutReply) Reset ¶ added in v0.0.2
func (x *LogoutReply) Reset()
func (*LogoutReply) String ¶ added in v0.0.2
func (x *LogoutReply) String() string
type RtokenRequest ¶ added in v0.0.2
type RtokenRequest struct { SiteKey string `protobuf:"bytes,1,opt,name=siteKey,proto3" json:"siteKey,omitempty"` Rtk string `protobuf:"bytes,2,opt,name=rtk,proto3" json:"rtk,omitempty"` // contains filtered or unexported fields }
func (*RtokenRequest) Descriptor
deprecated
added in
v0.0.2
func (*RtokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RtokenRequest.ProtoReflect.Descriptor instead.
func (*RtokenRequest) GetRtk ¶ added in v0.0.2
func (x *RtokenRequest) GetRtk() string
func (*RtokenRequest) GetSiteKey ¶ added in v0.0.2
func (x *RtokenRequest) GetSiteKey() string
func (*RtokenRequest) ProtoMessage ¶ added in v0.0.2
func (*RtokenRequest) ProtoMessage()
func (*RtokenRequest) ProtoReflect ¶ added in v0.0.2
func (x *RtokenRequest) ProtoReflect() protoreflect.Message
func (*RtokenRequest) Reset ¶ added in v0.0.2
func (x *RtokenRequest) Reset()
func (*RtokenRequest) String ¶ added in v0.0.2
func (x *RtokenRequest) String() string
type SiteJwtSecretReply ¶
type SiteJwtSecretReply struct { JwtSecret []byte `protobuf:"bytes,1,opt,name=jwtSecret,proto3" json:"jwtSecret,omitempty"` // contains filtered or unexported fields }
func (*SiteJwtSecretReply) Descriptor
deprecated
func (*SiteJwtSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use SiteJwtSecretReply.ProtoReflect.Descriptor instead.
func (*SiteJwtSecretReply) GetJwtSecret ¶
func (x *SiteJwtSecretReply) GetJwtSecret() []byte
func (*SiteJwtSecretReply) ProtoMessage ¶
func (*SiteJwtSecretReply) ProtoMessage()
func (*SiteJwtSecretReply) ProtoReflect ¶
func (x *SiteJwtSecretReply) ProtoReflect() protoreflect.Message
func (*SiteJwtSecretReply) Reset ¶
func (x *SiteJwtSecretReply) Reset()
func (*SiteJwtSecretReply) String ¶
func (x *SiteJwtSecretReply) String() string
type SiteJwtSecretRequest ¶
type SiteJwtSecretRequest struct { SiteKey string `protobuf:"bytes,1,opt,name=siteKey,proto3" json:"siteKey,omitempty"` // contains filtered or unexported fields }
func (*SiteJwtSecretRequest) Descriptor
deprecated
func (*SiteJwtSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use SiteJwtSecretRequest.ProtoReflect.Descriptor instead.
func (*SiteJwtSecretRequest) GetSiteKey ¶
func (x *SiteJwtSecretRequest) GetSiteKey() string
func (*SiteJwtSecretRequest) ProtoMessage ¶
func (*SiteJwtSecretRequest) ProtoMessage()
func (*SiteJwtSecretRequest) ProtoReflect ¶
func (x *SiteJwtSecretRequest) ProtoReflect() protoreflect.Message
func (*SiteJwtSecretRequest) Reset ¶
func (x *SiteJwtSecretRequest) Reset()
func (*SiteJwtSecretRequest) String ¶
func (x *SiteJwtSecretRequest) String() string
type UnimplementedAuth1Server ¶
type UnimplementedAuth1Server struct { }
UnimplementedAuth1Server must be embedded to have forward compatible implementations.
func (UnimplementedAuth1Server) GetSiteJwtSecret ¶
func (UnimplementedAuth1Server) GetSiteJwtSecret(context.Context, *SiteJwtSecretRequest) (*SiteJwtSecretReply, error)
func (UnimplementedAuth1Server) LoginUidpw ¶ added in v0.0.2
func (UnimplementedAuth1Server) LoginUidpw(context.Context, *LoginUidpwRequest) (*LoginResultReply, error)
func (UnimplementedAuth1Server) LogoutUser ¶ added in v0.0.2
func (UnimplementedAuth1Server) LogoutUser(context.Context, *RtokenRequest) (*LogoutReply, error)
func (UnimplementedAuth1Server) RefreshUser ¶ added in v0.0.2
func (UnimplementedAuth1Server) RefreshUser(context.Context, *RtokenRequest) (*LoginResultReply, error)
type UnsafeAuth1Server ¶
type UnsafeAuth1Server interface {
// contains filtered or unexported methods
}
UnsafeAuth1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Auth1Server will result in compilation errors.