authCommandService

package
v0.0.0-...-e5a474c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_auth_command_messages_proto protoreflect.FileDescriptor
View Source
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.

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

Deprecated: Use Blacklist.ProtoReflect.Descriptor instead.

func (*Blacklist) GetAccessToken

func (x *Blacklist) GetAccessToken() string

func (*Blacklist) GetCreatedAt

func (x *Blacklist) GetCreatedAt() *timestamp.Timestamp

func (*Blacklist) GetID

func (x *Blacklist) GetID() string

func (*Blacklist) GetUpdatedAt

func (x *Blacklist) GetUpdatedAt() *timestamp.Timestamp

func (*Blacklist) ProtoMessage

func (*Blacklist) ProtoMessage()

func (*Blacklist) ProtoReflect

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

func (*Blacklist) Reset

func (x *Blacklist) Reset()

func (*Blacklist) String

func (x *Blacklist) String() string

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) CheckTokenBlacklist

func (UnimplementedAuthCommandServiceServer) UpdatePassword

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetID

func (x *User) GetID() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetRoot

func (x *User) GetRoot() bool

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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