Documentation ¶
Index ¶
- Variables
- func RegisterAuthQueryServiceServer(s grpc.ServiceRegistrar, srv AuthQueryServiceServer)
- type AuthQueryServiceClient
- type AuthQueryServiceServer
- type AuthenticateReq
- func (*AuthenticateReq) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateReq) GetEmail() string
- func (x *AuthenticateReq) GetPassword() string
- func (*AuthenticateReq) ProtoMessage()
- func (x *AuthenticateReq) ProtoReflect() protoreflect.Message
- func (x *AuthenticateReq) Reset()
- func (x *AuthenticateReq) String() string
- type AuthenticateRes
- func (*AuthenticateRes) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRes) GetStatus() int64
- func (x *AuthenticateRes) GetUser() *User
- func (*AuthenticateRes) ProtoMessage()
- func (x *AuthenticateRes) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRes) Reset()
- func (x *AuthenticateRes) String() string
- type Blacklist
- func (*Blacklist) Descriptor() ([]byte, []int)deprecated
- func (x *Blacklist) GetAccessToken() string
- func (x *Blacklist) GetCreatedAt() *timestamp.Timestamp
- func (x *Blacklist) GetID() string
- func (x *Blacklist) GetUpdatedAt() *timestamp.Timestamp
- func (*Blacklist) ProtoMessage()
- func (x *Blacklist) ProtoReflect() protoreflect.Message
- func (x *Blacklist) Reset()
- func (x *Blacklist) String() string
- type BlacklistTokenReq
- func (*BlacklistTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *BlacklistTokenReq) GetAccessToken() string
- func (x *BlacklistTokenReq) GetID() string
- func (*BlacklistTokenReq) ProtoMessage()
- func (x *BlacklistTokenReq) ProtoReflect() protoreflect.Message
- func (x *BlacklistTokenReq) Reset()
- func (x *BlacklistTokenReq) String() string
- type BlacklistTokenRes
- func (*BlacklistTokenRes) Descriptor() ([]byte, []int)deprecated
- func (x *BlacklistTokenRes) GetID() string
- func (x *BlacklistTokenRes) GetStatus() int64
- func (*BlacklistTokenRes) ProtoMessage()
- func (x *BlacklistTokenRes) ProtoReflect() protoreflect.Message
- func (x *BlacklistTokenRes) Reset()
- func (x *BlacklistTokenRes) String() string
- type PasswordUpdateReq
- func (*PasswordUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordUpdateReq) GetCurrentPassword() string
- func (x *PasswordUpdateReq) GetID() string
- func (x *PasswordUpdateReq) GetNewPassword() string
- func (*PasswordUpdateReq) ProtoMessage()
- func (x *PasswordUpdateReq) ProtoReflect() protoreflect.Message
- func (x *PasswordUpdateReq) Reset()
- func (x *PasswordUpdateReq) String() string
- type PasswordUpdateRes
- type UnimplementedAuthQueryServiceServer
- func (UnimplementedAuthQueryServiceServer) Authenticate(context.Context, *AuthenticateReq) (*AuthenticateRes, error)
- func (UnimplementedAuthQueryServiceServer) BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error)
- func (UnimplementedAuthQueryServiceServer) UpdatePassword(context.Context, *PasswordUpdateReq) (*PasswordUpdateRes, error)
- func (UnimplementedAuthQueryServiceServer) Validate(context.Context, *ValidateReq) (*ValidateRes, error)
- type UnsafeAuthQueryServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActive() bool
- func (x *User) GetCreatedAt() *timestamp.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetID() string
- func (x *User) GetPassword() string
- func (x *User) GetRoot() bool
- func (x *User) GetUpdatedAt() *timestamp.Timestamp
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type ValidateReq
- func (*ValidateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateReq) GetAccessToken() string
- func (x *ValidateReq) GetUserID() string
- func (x *ValidateReq) GetValidationType() int64
- func (*ValidateReq) ProtoMessage()
- func (x *ValidateReq) ProtoReflect() protoreflect.Message
- func (x *ValidateReq) Reset()
- func (x *ValidateReq) String() string
- type ValidateRes
Constants ¶
This section is empty.
Variables ¶
var AuthQueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authQueryService.authQueryService", HandlerType: (*AuthQueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _AuthQueryService_Authenticate_Handler, }, { MethodName: "BlacklistToken", Handler: _AuthQueryService_BlacklistToken_Handler, }, { MethodName: "Validate", Handler: _AuthQueryService_Validate_Handler, }, { MethodName: "UpdatePassword", Handler: _AuthQueryService_UpdatePassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_query.proto", }
AuthQueryService_ServiceDesc is the grpc.ServiceDesc for AuthQueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_query_messages_proto protoreflect.FileDescriptor
var File_auth_query_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthQueryServiceServer ¶
func RegisterAuthQueryServiceServer(s grpc.ServiceRegistrar, srv AuthQueryServiceServer)
Types ¶
type AuthQueryServiceClient ¶
type AuthQueryServiceClient interface { Authenticate(ctx context.Context, in *AuthenticateReq, opts ...grpc.CallOption) (*AuthenticateRes, error) BlacklistToken(ctx context.Context, in *BlacklistTokenReq, opts ...grpc.CallOption) (*BlacklistTokenRes, error) Validate(ctx context.Context, in *ValidateReq, opts ...grpc.CallOption) (*ValidateRes, error) UpdatePassword(ctx context.Context, in *PasswordUpdateReq, opts ...grpc.CallOption) (*PasswordUpdateRes, error) }
AuthQueryServiceClient is the client API for AuthQueryService 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 NewAuthQueryServiceClient ¶
func NewAuthQueryServiceClient(cc grpc.ClientConnInterface) AuthQueryServiceClient
type AuthQueryServiceServer ¶
type AuthQueryServiceServer interface { Authenticate(context.Context, *AuthenticateReq) (*AuthenticateRes, error) BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error) Validate(context.Context, *ValidateReq) (*ValidateRes, error) UpdatePassword(context.Context, *PasswordUpdateReq) (*PasswordUpdateRes, error) }
AuthQueryServiceServer is the server API for AuthQueryService service. All implementations should embed UnimplementedAuthQueryServiceServer for forward compatibility
type AuthenticateReq ¶
type AuthenticateReq struct { Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateReq) Descriptor
deprecated
func (*AuthenticateReq) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateReq.ProtoReflect.Descriptor instead.
func (*AuthenticateReq) GetEmail ¶
func (x *AuthenticateReq) GetEmail() string
func (*AuthenticateReq) GetPassword ¶
func (x *AuthenticateReq) GetPassword() string
func (*AuthenticateReq) ProtoMessage ¶
func (*AuthenticateReq) ProtoMessage()
func (*AuthenticateReq) ProtoReflect ¶
func (x *AuthenticateReq) ProtoReflect() protoreflect.Message
func (*AuthenticateReq) Reset ¶
func (x *AuthenticateReq) Reset()
func (*AuthenticateReq) String ¶
func (x *AuthenticateReq) String() string
type AuthenticateRes ¶
type AuthenticateRes struct { User *User `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"` Status int64 `protobuf:"varint,2,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRes) Descriptor
deprecated
func (*AuthenticateRes) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRes.ProtoReflect.Descriptor instead.
func (*AuthenticateRes) GetStatus ¶
func (x *AuthenticateRes) GetStatus() int64
func (*AuthenticateRes) GetUser ¶
func (x *AuthenticateRes) GetUser() *User
func (*AuthenticateRes) ProtoMessage ¶
func (*AuthenticateRes) ProtoMessage()
func (*AuthenticateRes) ProtoReflect ¶
func (x *AuthenticateRes) ProtoReflect() protoreflect.Message
func (*AuthenticateRes) Reset ¶
func (x *AuthenticateRes) Reset()
func (*AuthenticateRes) String ¶
func (x *AuthenticateRes) String() string
type Blacklist ¶
type Blacklist struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` // contains filtered or unexported fields }
func (*Blacklist) Descriptor
deprecated
func (*Blacklist) GetAccessToken ¶
func (*Blacklist) GetCreatedAt ¶
func (*Blacklist) GetUpdatedAt ¶
func (*Blacklist) ProtoMessage ¶
func (*Blacklist) ProtoMessage()
func (*Blacklist) ProtoReflect ¶
func (x *Blacklist) ProtoReflect() protoreflect.Message
type BlacklistTokenReq ¶
type BlacklistTokenReq struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*BlacklistTokenReq) Descriptor
deprecated
func (*BlacklistTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use BlacklistTokenReq.ProtoReflect.Descriptor instead.
func (*BlacklistTokenReq) GetAccessToken ¶
func (x *BlacklistTokenReq) GetAccessToken() string
func (*BlacklistTokenReq) GetID ¶
func (x *BlacklistTokenReq) GetID() string
func (*BlacklistTokenReq) ProtoMessage ¶
func (*BlacklistTokenReq) ProtoMessage()
func (*BlacklistTokenReq) ProtoReflect ¶
func (x *BlacklistTokenReq) ProtoReflect() protoreflect.Message
func (*BlacklistTokenReq) Reset ¶
func (x *BlacklistTokenReq) Reset()
func (*BlacklistTokenReq) String ¶
func (x *BlacklistTokenReq) String() string
type BlacklistTokenRes ¶
type BlacklistTokenRes struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Status int64 `protobuf:"varint,2,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*BlacklistTokenRes) Descriptor
deprecated
func (*BlacklistTokenRes) Descriptor() ([]byte, []int)
Deprecated: Use BlacklistTokenRes.ProtoReflect.Descriptor instead.
func (*BlacklistTokenRes) GetID ¶
func (x *BlacklistTokenRes) GetID() string
func (*BlacklistTokenRes) GetStatus ¶
func (x *BlacklistTokenRes) GetStatus() int64
func (*BlacklistTokenRes) ProtoMessage ¶
func (*BlacklistTokenRes) ProtoMessage()
func (*BlacklistTokenRes) ProtoReflect ¶
func (x *BlacklistTokenRes) ProtoReflect() protoreflect.Message
func (*BlacklistTokenRes) Reset ¶
func (x *BlacklistTokenRes) Reset()
func (*BlacklistTokenRes) String ¶
func (x *BlacklistTokenRes) String() string
type PasswordUpdateReq ¶
type PasswordUpdateReq struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` CurrentPassword string `protobuf:"bytes,2,opt,name=CurrentPassword,proto3" json:"CurrentPassword,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=NewPassword,proto3" json:"NewPassword,omitempty"` // contains filtered or unexported fields }
func (*PasswordUpdateReq) Descriptor
deprecated
func (*PasswordUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use PasswordUpdateReq.ProtoReflect.Descriptor instead.
func (*PasswordUpdateReq) GetCurrentPassword ¶
func (x *PasswordUpdateReq) GetCurrentPassword() string
func (*PasswordUpdateReq) GetID ¶
func (x *PasswordUpdateReq) GetID() string
func (*PasswordUpdateReq) GetNewPassword ¶
func (x *PasswordUpdateReq) GetNewPassword() string
func (*PasswordUpdateReq) ProtoMessage ¶
func (*PasswordUpdateReq) ProtoMessage()
func (*PasswordUpdateReq) ProtoReflect ¶
func (x *PasswordUpdateReq) ProtoReflect() protoreflect.Message
func (*PasswordUpdateReq) Reset ¶
func (x *PasswordUpdateReq) Reset()
func (*PasswordUpdateReq) String ¶
func (x *PasswordUpdateReq) String() string
type PasswordUpdateRes ¶
type PasswordUpdateRes struct { Status int64 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*PasswordUpdateRes) Descriptor
deprecated
func (*PasswordUpdateRes) Descriptor() ([]byte, []int)
Deprecated: Use PasswordUpdateRes.ProtoReflect.Descriptor instead.
func (*PasswordUpdateRes) GetStatus ¶
func (x *PasswordUpdateRes) GetStatus() int64
func (*PasswordUpdateRes) ProtoMessage ¶
func (*PasswordUpdateRes) ProtoMessage()
func (*PasswordUpdateRes) ProtoReflect ¶
func (x *PasswordUpdateRes) ProtoReflect() protoreflect.Message
func (*PasswordUpdateRes) Reset ¶
func (x *PasswordUpdateRes) Reset()
func (*PasswordUpdateRes) String ¶
func (x *PasswordUpdateRes) String() string
type UnimplementedAuthQueryServiceServer ¶
type UnimplementedAuthQueryServiceServer struct { }
UnimplementedAuthQueryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthQueryServiceServer) Authenticate ¶
func (UnimplementedAuthQueryServiceServer) Authenticate(context.Context, *AuthenticateReq) (*AuthenticateRes, error)
func (UnimplementedAuthQueryServiceServer) BlacklistToken ¶
func (UnimplementedAuthQueryServiceServer) BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error)
func (UnimplementedAuthQueryServiceServer) UpdatePassword ¶
func (UnimplementedAuthQueryServiceServer) UpdatePassword(context.Context, *PasswordUpdateReq) (*PasswordUpdateRes, error)
func (UnimplementedAuthQueryServiceServer) Validate ¶
func (UnimplementedAuthQueryServiceServer) Validate(context.Context, *ValidateReq) (*ValidateRes, error)
type UnsafeAuthQueryServiceServer ¶
type UnsafeAuthQueryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthQueryServiceServer will result in compilation errors.
type User ¶
type User struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Email string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"` Root bool `protobuf:"varint,5,opt,name=Root,proto3" json:"Root,omitempty"` Active bool `protobuf:"varint,6,opt,name=Active,proto3" json:"Active,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetPassword ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type ValidateReq ¶
type ValidateReq struct { UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` ValidationType int64 `protobuf:"varint,3,opt,name=ValidationType,proto3" json:"ValidationType,omitempty"` // contains filtered or unexported fields }
func (*ValidateReq) Descriptor
deprecated
func (*ValidateReq) Descriptor() ([]byte, []int)
Deprecated: Use ValidateReq.ProtoReflect.Descriptor instead.
func (*ValidateReq) GetAccessToken ¶
func (x *ValidateReq) GetAccessToken() string
func (*ValidateReq) GetUserID ¶
func (x *ValidateReq) GetUserID() string
func (*ValidateReq) GetValidationType ¶
func (x *ValidateReq) GetValidationType() int64
func (*ValidateReq) ProtoMessage ¶
func (*ValidateReq) ProtoMessage()
func (*ValidateReq) ProtoReflect ¶
func (x *ValidateReq) ProtoReflect() protoreflect.Message
func (*ValidateReq) Reset ¶
func (x *ValidateReq) Reset()
func (*ValidateReq) String ¶
func (x *ValidateReq) String() string
type ValidateRes ¶
type ValidateRes struct { User *User `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"` Status int64 `protobuf:"varint,2,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*ValidateRes) Descriptor
deprecated
func (*ValidateRes) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRes.ProtoReflect.Descriptor instead.
func (*ValidateRes) GetStatus ¶
func (x *ValidateRes) GetStatus() int64
func (*ValidateRes) GetUser ¶
func (x *ValidateRes) GetUser() *User
func (*ValidateRes) ProtoMessage ¶
func (*ValidateRes) ProtoMessage()
func (*ValidateRes) ProtoReflect ¶
func (x *ValidateRes) ProtoReflect() protoreflect.Message
func (*ValidateRes) Reset ¶
func (x *ValidateRes) Reset()
func (*ValidateRes) String ¶
func (x *ValidateRes) String() string