authQueryService

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

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

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

func (UnimplementedAuthQueryServiceServer) UpdatePassword

func (UnimplementedAuthQueryServiceServer) Validate

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

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

Jump to

Keyboard shortcuts

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