Documentation
¶
Index ¶
- Variables
- func RegisterAuthCommandServiceServer(s grpc.ServiceRegistrar, srv AuthCommandServiceServer)
- type AuthCommandServiceClient
- type AuthCommandServiceServer
- 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 CheckBlacklistReq
- func (*CheckBlacklistReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckBlacklistReq) GetAccessToken() string
- func (*CheckBlacklistReq) ProtoMessage()
- func (x *CheckBlacklistReq) ProtoReflect() protoreflect.Message
- func (x *CheckBlacklistReq) Reset()
- func (x *CheckBlacklistReq) String() string
- type CheckBlacklistRes
- type UnimplementedAuthCommandServiceServer
- func (UnimplementedAuthCommandServiceServer) BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error)
- func (UnimplementedAuthCommandServiceServer) CheckTokenBlacklist(context.Context, *CheckBlacklistReq) (*CheckBlacklistRes, error)
- func (UnimplementedAuthCommandServiceServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordRes, error)
- type UnsafeAuthCommandServiceServer
- type UpdatePasswordReq
- func (*UpdatePasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordReq) GetCurrentPassword() string
- func (x *UpdatePasswordReq) GetID() string
- func (x *UpdatePasswordReq) GetNewPassword() string
- func (*UpdatePasswordReq) ProtoMessage()
- func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordReq) Reset()
- func (x *UpdatePasswordReq) String() string
- type UpdatePasswordRes
- 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
Constants ¶
This section is empty.
Variables ¶
var AuthCommandService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authCommandService.authCommandService", HandlerType: (*AuthCommandServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BlacklistToken", Handler: _AuthCommandService_BlacklistToken_Handler, }, { MethodName: "UpdatePassword", Handler: _AuthCommandService_UpdatePassword_Handler, }, { MethodName: "CheckTokenBlacklist", Handler: _AuthCommandService_CheckTokenBlacklist_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_command.proto", }
AuthCommandService_ServiceDesc is the grpc.ServiceDesc for AuthCommandService 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_command_messages_proto protoreflect.FileDescriptor
var File_auth_command_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthCommandServiceServer ¶
func RegisterAuthCommandServiceServer(s grpc.ServiceRegistrar, srv AuthCommandServiceServer)
Types ¶
type AuthCommandServiceClient ¶
type AuthCommandServiceClient interface { BlacklistToken(ctx context.Context, in *BlacklistTokenReq, opts ...grpc.CallOption) (*BlacklistTokenRes, error) UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordRes, error) CheckTokenBlacklist(ctx context.Context, in *CheckBlacklistReq, opts ...grpc.CallOption) (*CheckBlacklistRes, error) }
AuthCommandServiceClient is the client API for AuthCommandService 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 NewAuthCommandServiceClient ¶
func NewAuthCommandServiceClient(cc grpc.ClientConnInterface) AuthCommandServiceClient
type AuthCommandServiceServer ¶
type AuthCommandServiceServer interface { BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordRes, error) CheckTokenBlacklist(context.Context, *CheckBlacklistReq) (*CheckBlacklistRes, error) }
AuthCommandServiceServer is the server API for AuthCommandService service. All implementations should embed UnimplementedAuthCommandServiceServer 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 CheckBlacklistReq ¶
type CheckBlacklistReq struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*CheckBlacklistReq) Descriptor
deprecated
func (*CheckBlacklistReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckBlacklistReq.ProtoReflect.Descriptor instead.
func (*CheckBlacklistReq) GetAccessToken ¶
func (x *CheckBlacklistReq) GetAccessToken() string
func (*CheckBlacklistReq) ProtoMessage ¶
func (*CheckBlacklistReq) ProtoMessage()
func (*CheckBlacklistReq) ProtoReflect ¶
func (x *CheckBlacklistReq) ProtoReflect() protoreflect.Message
func (*CheckBlacklistReq) Reset ¶
func (x *CheckBlacklistReq) Reset()
func (*CheckBlacklistReq) String ¶
func (x *CheckBlacklistReq) String() string
type CheckBlacklistRes ¶
type CheckBlacklistRes struct { Status int64 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*CheckBlacklistRes) Descriptor
deprecated
func (*CheckBlacklistRes) Descriptor() ([]byte, []int)
Deprecated: Use CheckBlacklistRes.ProtoReflect.Descriptor instead.
func (*CheckBlacklistRes) GetStatus ¶
func (x *CheckBlacklistRes) GetStatus() int64
func (*CheckBlacklistRes) ProtoMessage ¶
func (*CheckBlacklistRes) ProtoMessage()
func (*CheckBlacklistRes) ProtoReflect ¶
func (x *CheckBlacklistRes) ProtoReflect() protoreflect.Message
func (*CheckBlacklistRes) Reset ¶
func (x *CheckBlacklistRes) Reset()
func (*CheckBlacklistRes) String ¶
func (x *CheckBlacklistRes) String() string
type UnimplementedAuthCommandServiceServer ¶
type UnimplementedAuthCommandServiceServer struct { }
UnimplementedAuthCommandServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthCommandServiceServer) BlacklistToken ¶
func (UnimplementedAuthCommandServiceServer) BlacklistToken(context.Context, *BlacklistTokenReq) (*BlacklistTokenRes, error)
func (UnimplementedAuthCommandServiceServer) CheckTokenBlacklist ¶
func (UnimplementedAuthCommandServiceServer) CheckTokenBlacklist(context.Context, *CheckBlacklistReq) (*CheckBlacklistRes, error)
func (UnimplementedAuthCommandServiceServer) UpdatePassword ¶
func (UnimplementedAuthCommandServiceServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordRes, error)
type UnsafeAuthCommandServiceServer ¶
type UnsafeAuthCommandServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthCommandServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthCommandServiceServer will result in compilation errors.
type UpdatePasswordReq ¶
type UpdatePasswordReq 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 (*UpdatePasswordReq) Descriptor
deprecated
func (*UpdatePasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.
func (*UpdatePasswordReq) GetCurrentPassword ¶
func (x *UpdatePasswordReq) GetCurrentPassword() string
func (*UpdatePasswordReq) GetID ¶
func (x *UpdatePasswordReq) GetID() string
func (*UpdatePasswordReq) GetNewPassword ¶
func (x *UpdatePasswordReq) GetNewPassword() string
func (*UpdatePasswordReq) ProtoMessage ¶
func (*UpdatePasswordReq) ProtoMessage()
func (*UpdatePasswordReq) ProtoReflect ¶
func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
func (*UpdatePasswordReq) Reset ¶
func (x *UpdatePasswordReq) Reset()
func (*UpdatePasswordReq) String ¶
func (x *UpdatePasswordReq) String() string
type UpdatePasswordRes ¶
type UpdatePasswordRes struct { Status int64 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordRes) Descriptor
deprecated
func (*UpdatePasswordRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordRes.ProtoReflect.Descriptor instead.
func (*UpdatePasswordRes) GetStatus ¶
func (x *UpdatePasswordRes) GetStatus() int64
func (*UpdatePasswordRes) ProtoMessage ¶
func (*UpdatePasswordRes) ProtoMessage()
func (*UpdatePasswordRes) ProtoReflect ¶
func (x *UpdatePasswordRes) ProtoReflect() protoreflect.Message
func (*UpdatePasswordRes) Reset ¶
func (x *UpdatePasswordRes) Reset()
func (*UpdatePasswordRes) String ¶
func (x *UpdatePasswordRes) String() string
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