authenticator

package
v1.1.91 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Authenticator_UserSignIn_FullMethodName          = "/api.authenticator.Authenticator/UserSignIn"
	Authenticator_UserRefreshToken_FullMethodName    = "/api.authenticator.Authenticator/UserRefreshToken"
	Authenticator_ServiceSignIn_FullMethodName       = "/api.authenticator.Authenticator/ServiceSignIn"
	Authenticator_ServiceRefreshToken_FullMethodName = "/api.authenticator.Authenticator/ServiceRefreshToken"
)
View Source
const OperationAuthenticatorServiceRefreshToken = "/api.authenticator.Authenticator/ServiceRefreshToken"
View Source
const OperationAuthenticatorServiceSignIn = "/api.authenticator.Authenticator/ServiceSignIn"
View Source
const OperationAuthenticatorUserRefreshToken = "/api.authenticator.Authenticator/UserRefreshToken"
View Source
const OperationAuthenticatorUserSignIn = "/api.authenticator.Authenticator/UserSignIn"

Variables

View Source
var (
	ESignInKind_name = map[int32]string{
		0: "CUSTOMER",
		1: "EMPLOYEE",
	}
	ESignInKind_value = map[string]int32{
		"CUSTOMER": 0,
		"EMPLOYEE": 1,
	}
)

Enum value maps for ESignInKind.

View Source
var Authenticator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.authenticator.Authenticator",
	HandlerType: (*AuthenticatorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UserSignIn",
			Handler:    _Authenticator_UserSignIn_Handler,
		},
		{
			MethodName: "UserRefreshToken",
			Handler:    _Authenticator_UserRefreshToken_Handler,
		},
		{
			MethodName: "ServiceSignIn",
			Handler:    _Authenticator_ServiceSignIn_Handler,
		},
		{
			MethodName: "ServiceRefreshToken",
			Handler:    _Authenticator_ServiceRefreshToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/authenticator/authenticator.proto",
}

Authenticator_ServiceDesc is the grpc.ServiceDesc for Authenticator 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_api_authenticator_authenticator_proto protoreflect.FileDescriptor

Functions

func RegisterAuthenticatorHTTPServer

func RegisterAuthenticatorHTTPServer(s *http.Server, srv AuthenticatorHTTPServer)

func RegisterAuthenticatorServer

func RegisterAuthenticatorServer(s grpc.ServiceRegistrar, srv AuthenticatorServer)

Types

type AuthenticatorClient

type AuthenticatorClient interface {
	UserSignIn(ctx context.Context, in *UserSignInRequest, opts ...grpc.CallOption) (*UserSignInReply, error)
	UserRefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenReply, error)
	ServiceSignIn(ctx context.Context, in *ServiceSignInRequest, opts ...grpc.CallOption) (*ServiceSignInReply, error)
	ServiceRefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenReply, error)
}

AuthenticatorClient is the client API for Authenticator 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 AuthenticatorHTTPClient

type AuthenticatorHTTPClient interface {
	ServiceRefreshToken(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *RefreshTokenReply, err error)
	ServiceSignIn(ctx context.Context, req *ServiceSignInRequest, opts ...http.CallOption) (rsp *ServiceSignInReply, err error)
	UserRefreshToken(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *RefreshTokenReply, err error)
	UserSignIn(ctx context.Context, req *UserSignInRequest, opts ...http.CallOption) (rsp *UserSignInReply, err error)
}

func NewAuthenticatorHTTPClient

func NewAuthenticatorHTTPClient(client *http.Client) AuthenticatorHTTPClient

type AuthenticatorHTTPClientImpl

type AuthenticatorHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AuthenticatorHTTPClientImpl) ServiceRefreshToken

func (*AuthenticatorHTTPClientImpl) ServiceSignIn

func (*AuthenticatorHTTPClientImpl) UserRefreshToken

func (*AuthenticatorHTTPClientImpl) UserSignIn

type AuthenticatorServer

type AuthenticatorServer interface {
	UserSignIn(context.Context, *UserSignInRequest) (*UserSignInReply, error)
	UserRefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error)
	ServiceSignIn(context.Context, *ServiceSignInRequest) (*ServiceSignInReply, error)
	ServiceRefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error)
	// contains filtered or unexported methods
}

AuthenticatorServer is the server API for Authenticator service. All implementations must embed UnimplementedAuthenticatorServer for forward compatibility

type ESignInKind

type ESignInKind int32
const (
	ESignInKind_CUSTOMER ESignInKind = 0
	ESignInKind_EMPLOYEE ESignInKind = 1
)

func (ESignInKind) Descriptor

func (ESignInKind) Enum

func (x ESignInKind) Enum() *ESignInKind

func (ESignInKind) EnumDescriptor deprecated

func (ESignInKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ESignInKind.Descriptor instead.

func (ESignInKind) Number

func (x ESignInKind) Number() protoreflect.EnumNumber

func (ESignInKind) String

func (x ESignInKind) String() string

func (ESignInKind) Type

type RefreshTokenData

type RefreshTokenData struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenData) Descriptor deprecated

func (*RefreshTokenData) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenData.ProtoReflect.Descriptor instead.

func (*RefreshTokenData) GetAccessToken

func (x *RefreshTokenData) GetAccessToken() string

func (*RefreshTokenData) ProtoMessage

func (*RefreshTokenData) ProtoMessage()

func (*RefreshTokenData) ProtoReflect

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

func (*RefreshTokenData) Reset

func (x *RefreshTokenData) Reset()

func (*RefreshTokenData) String

func (x *RefreshTokenData) String() string

func (*RefreshTokenData) Validate

func (m *RefreshTokenData) Validate() error

Validate checks the field values on RefreshTokenData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RefreshTokenData) ValidateAll

func (m *RefreshTokenData) ValidateAll() error

ValidateAll checks the field values on RefreshTokenData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenDataMultiError, or nil if none found.

type RefreshTokenDataMultiError

type RefreshTokenDataMultiError []error

RefreshTokenDataMultiError is an error wrapping multiple validation errors returned by RefreshTokenData.ValidateAll() if the designated constraints aren't met.

func (RefreshTokenDataMultiError) AllErrors

func (m RefreshTokenDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshTokenDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshTokenDataValidationError

type RefreshTokenDataValidationError struct {
	// contains filtered or unexported fields
}

RefreshTokenDataValidationError is the validation error returned by RefreshTokenData.Validate if the designated constraints aren't met.

func (RefreshTokenDataValidationError) Cause

Cause function returns cause value.

func (RefreshTokenDataValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenDataValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenDataValidationError) Field

Field function returns field value.

func (RefreshTokenDataValidationError) Key

Key function returns key value.

func (RefreshTokenDataValidationError) Reason

Reason function returns reason value.

type RefreshTokenReply

type RefreshTokenReply struct {

	// Types that are assignable to Inner:
	//
	//	*RefreshTokenReply_Error
	//	*RefreshTokenReply_Data
	Inner isRefreshTokenReply_Inner `protobuf_oneof:"inner"`
	// contains filtered or unexported fields
}

func (*RefreshTokenReply) Descriptor deprecated

func (*RefreshTokenReply) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenReply.ProtoReflect.Descriptor instead.

func (*RefreshTokenReply) GetData

func (x *RefreshTokenReply) GetData() *RefreshTokenData

func (*RefreshTokenReply) GetError

func (x *RefreshTokenReply) GetError() *protobuf.Error

func (*RefreshTokenReply) GetInner

func (m *RefreshTokenReply) GetInner() isRefreshTokenReply_Inner

func (*RefreshTokenReply) ProtoMessage

func (*RefreshTokenReply) ProtoMessage()

func (*RefreshTokenReply) ProtoReflect

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

func (*RefreshTokenReply) Reset

func (x *RefreshTokenReply) Reset()

func (*RefreshTokenReply) String

func (x *RefreshTokenReply) String() string

func (*RefreshTokenReply) Validate

func (m *RefreshTokenReply) Validate() error

Validate checks the field values on RefreshTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RefreshTokenReply) ValidateAll

func (m *RefreshTokenReply) ValidateAll() error

ValidateAll checks the field values on RefreshTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenReplyMultiError, or nil if none found.

type RefreshTokenReplyMultiError

type RefreshTokenReplyMultiError []error

RefreshTokenReplyMultiError is an error wrapping multiple validation errors returned by RefreshTokenReply.ValidateAll() if the designated constraints aren't met.

func (RefreshTokenReplyMultiError) AllErrors

func (m RefreshTokenReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshTokenReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshTokenReplyValidationError

type RefreshTokenReplyValidationError struct {
	// contains filtered or unexported fields
}

RefreshTokenReplyValidationError is the validation error returned by RefreshTokenReply.Validate if the designated constraints aren't met.

func (RefreshTokenReplyValidationError) Cause

Cause function returns cause value.

func (RefreshTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenReplyValidationError) Field

Field function returns field value.

func (RefreshTokenReplyValidationError) Key

Key function returns key value.

func (RefreshTokenReplyValidationError) Reason

Reason function returns reason value.

type RefreshTokenReply_Data

type RefreshTokenReply_Data struct {
	Data *RefreshTokenData `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type RefreshTokenReply_Error

type RefreshTokenReply_Error struct {
	Error *protobuf.Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	TokenId      string `protobuf:"bytes,1,opt,name=token_id,proto3" json:"token_id,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshToken

func (x *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) GetTokenId

func (x *RefreshTokenRequest) GetTokenId() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) ProtoReflect

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

func (*RefreshTokenRequest) Reset

func (x *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (x *RefreshTokenRequest) String() string

func (*RefreshTokenRequest) Validate

func (m *RefreshTokenRequest) Validate() error

Validate checks the field values on RefreshTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RefreshTokenRequest) ValidateAll

func (m *RefreshTokenRequest) ValidateAll() error

ValidateAll checks the field values on RefreshTokenRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenRequestMultiError, or nil if none found.

type RefreshTokenRequestMultiError

type RefreshTokenRequestMultiError []error

RefreshTokenRequestMultiError is an error wrapping multiple validation errors returned by RefreshTokenRequest.ValidateAll() if the designated constraints aren't met.

func (RefreshTokenRequestMultiError) AllErrors

func (m RefreshTokenRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshTokenRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshTokenRequestValidationError

type RefreshTokenRequestValidationError struct {
	// contains filtered or unexported fields
}

RefreshTokenRequestValidationError is the validation error returned by RefreshTokenRequest.Validate if the designated constraints aren't met.

func (RefreshTokenRequestValidationError) Cause

Cause function returns cause value.

func (RefreshTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenRequestValidationError) Field

Field function returns field value.

func (RefreshTokenRequestValidationError) Key

Key function returns key value.

func (RefreshTokenRequestValidationError) Reason

Reason function returns reason value.

type ServiceSignInData

type ServiceSignInData struct {
	TokenId      string `protobuf:"bytes,1,opt,name=token_id,proto3" json:"token_id,omitempty"`
	AccessToken  string `protobuf:"bytes,2,opt,name=access_token,proto3" json:"access_token,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceSignInData) Descriptor deprecated

func (*ServiceSignInData) Descriptor() ([]byte, []int)

Deprecated: Use ServiceSignInData.ProtoReflect.Descriptor instead.

func (*ServiceSignInData) GetAccessToken

func (x *ServiceSignInData) GetAccessToken() string

func (*ServiceSignInData) GetRefreshToken

func (x *ServiceSignInData) GetRefreshToken() string

func (*ServiceSignInData) GetTokenId

func (x *ServiceSignInData) GetTokenId() string

func (*ServiceSignInData) ProtoMessage

func (*ServiceSignInData) ProtoMessage()

func (*ServiceSignInData) ProtoReflect

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

func (*ServiceSignInData) Reset

func (x *ServiceSignInData) Reset()

func (*ServiceSignInData) String

func (x *ServiceSignInData) String() string

func (*ServiceSignInData) Validate

func (m *ServiceSignInData) Validate() error

Validate checks the field values on ServiceSignInData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServiceSignInData) ValidateAll

func (m *ServiceSignInData) ValidateAll() error

ValidateAll checks the field values on ServiceSignInData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceSignInDataMultiError, or nil if none found.

type ServiceSignInDataMultiError

type ServiceSignInDataMultiError []error

ServiceSignInDataMultiError is an error wrapping multiple validation errors returned by ServiceSignInData.ValidateAll() if the designated constraints aren't met.

func (ServiceSignInDataMultiError) AllErrors

func (m ServiceSignInDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServiceSignInDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServiceSignInDataValidationError

type ServiceSignInDataValidationError struct {
	// contains filtered or unexported fields
}

ServiceSignInDataValidationError is the validation error returned by ServiceSignInData.Validate if the designated constraints aren't met.

func (ServiceSignInDataValidationError) Cause

Cause function returns cause value.

func (ServiceSignInDataValidationError) Error

Error satisfies the builtin error interface

func (ServiceSignInDataValidationError) ErrorName

ErrorName returns error name.

func (ServiceSignInDataValidationError) Field

Field function returns field value.

func (ServiceSignInDataValidationError) Key

Key function returns key value.

func (ServiceSignInDataValidationError) Reason

Reason function returns reason value.

type ServiceSignInReply

type ServiceSignInReply struct {

	// Types that are assignable to Inner:
	//
	//	*ServiceSignInReply_Error
	//	*ServiceSignInReply_Data
	Inner isServiceSignInReply_Inner `protobuf_oneof:"inner"`
	// contains filtered or unexported fields
}

func (*ServiceSignInReply) Descriptor deprecated

func (*ServiceSignInReply) Descriptor() ([]byte, []int)

Deprecated: Use ServiceSignInReply.ProtoReflect.Descriptor instead.

func (*ServiceSignInReply) GetData

func (x *ServiceSignInReply) GetData() *ServiceSignInData

func (*ServiceSignInReply) GetError

func (x *ServiceSignInReply) GetError() *protobuf.Error

func (*ServiceSignInReply) GetInner

func (m *ServiceSignInReply) GetInner() isServiceSignInReply_Inner

func (*ServiceSignInReply) ProtoMessage

func (*ServiceSignInReply) ProtoMessage()

func (*ServiceSignInReply) ProtoReflect

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

func (*ServiceSignInReply) Reset

func (x *ServiceSignInReply) Reset()

func (*ServiceSignInReply) String

func (x *ServiceSignInReply) String() string

func (*ServiceSignInReply) Validate

func (m *ServiceSignInReply) Validate() error

Validate checks the field values on ServiceSignInReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServiceSignInReply) ValidateAll

func (m *ServiceSignInReply) ValidateAll() error

ValidateAll checks the field values on ServiceSignInReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceSignInReplyMultiError, or nil if none found.

type ServiceSignInReplyMultiError

type ServiceSignInReplyMultiError []error

ServiceSignInReplyMultiError is an error wrapping multiple validation errors returned by ServiceSignInReply.ValidateAll() if the designated constraints aren't met.

func (ServiceSignInReplyMultiError) AllErrors

func (m ServiceSignInReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServiceSignInReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServiceSignInReplyValidationError

type ServiceSignInReplyValidationError struct {
	// contains filtered or unexported fields
}

ServiceSignInReplyValidationError is the validation error returned by ServiceSignInReply.Validate if the designated constraints aren't met.

func (ServiceSignInReplyValidationError) Cause

Cause function returns cause value.

func (ServiceSignInReplyValidationError) Error

Error satisfies the builtin error interface

func (ServiceSignInReplyValidationError) ErrorName

ErrorName returns error name.

func (ServiceSignInReplyValidationError) Field

Field function returns field value.

func (ServiceSignInReplyValidationError) Key

Key function returns key value.

func (ServiceSignInReplyValidationError) Reason

Reason function returns reason value.

type ServiceSignInReply_Data

type ServiceSignInReply_Data struct {
	Data *ServiceSignInData `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type ServiceSignInReply_Error

type ServiceSignInReply_Error struct {
	Error *protobuf.Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type ServiceSignInRequest

type ServiceSignInRequest struct {
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceSignInRequest) Descriptor deprecated

func (*ServiceSignInRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceSignInRequest.ProtoReflect.Descriptor instead.

func (*ServiceSignInRequest) GetPassword

func (x *ServiceSignInRequest) GetPassword() string

func (*ServiceSignInRequest) GetUsername

func (x *ServiceSignInRequest) GetUsername() string

func (*ServiceSignInRequest) ProtoMessage

func (*ServiceSignInRequest) ProtoMessage()

func (*ServiceSignInRequest) ProtoReflect

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

func (*ServiceSignInRequest) Reset

func (x *ServiceSignInRequest) Reset()

func (*ServiceSignInRequest) String

func (x *ServiceSignInRequest) String() string

func (*ServiceSignInRequest) Validate

func (m *ServiceSignInRequest) Validate() error

Validate checks the field values on ServiceSignInRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServiceSignInRequest) ValidateAll

func (m *ServiceSignInRequest) ValidateAll() error

ValidateAll checks the field values on ServiceSignInRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceSignInRequestMultiError, or nil if none found.

type ServiceSignInRequestMultiError

type ServiceSignInRequestMultiError []error

ServiceSignInRequestMultiError is an error wrapping multiple validation errors returned by ServiceSignInRequest.ValidateAll() if the designated constraints aren't met.

func (ServiceSignInRequestMultiError) AllErrors

func (m ServiceSignInRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServiceSignInRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ServiceSignInRequestValidationError

type ServiceSignInRequestValidationError struct {
	// contains filtered or unexported fields
}

ServiceSignInRequestValidationError is the validation error returned by ServiceSignInRequest.Validate if the designated constraints aren't met.

func (ServiceSignInRequestValidationError) Cause

Cause function returns cause value.

func (ServiceSignInRequestValidationError) Error

Error satisfies the builtin error interface

func (ServiceSignInRequestValidationError) ErrorName

ErrorName returns error name.

func (ServiceSignInRequestValidationError) Field

Field function returns field value.

func (ServiceSignInRequestValidationError) Key

Key function returns key value.

func (ServiceSignInRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthenticatorServer

type UnimplementedAuthenticatorServer struct {
}

UnimplementedAuthenticatorServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthenticatorServer) ServiceRefreshToken

func (UnimplementedAuthenticatorServer) ServiceSignIn

func (UnimplementedAuthenticatorServer) UserRefreshToken

func (UnimplementedAuthenticatorServer) UserSignIn

type UnsafeAuthenticatorServer

type UnsafeAuthenticatorServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthenticatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticatorServer will result in compilation errors.

type UserSignInData

type UserSignInData struct {
	TokenId      string `protobuf:"bytes,1,opt,name=token_id,proto3" json:"token_id,omitempty"`
	AccessToken  string `protobuf:"bytes,2,opt,name=access_token,proto3" json:"access_token,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSignInData) Descriptor deprecated

func (*UserSignInData) Descriptor() ([]byte, []int)

Deprecated: Use UserSignInData.ProtoReflect.Descriptor instead.

func (*UserSignInData) GetAccessToken

func (x *UserSignInData) GetAccessToken() string

func (*UserSignInData) GetRefreshToken

func (x *UserSignInData) GetRefreshToken() string

func (*UserSignInData) GetTokenId

func (x *UserSignInData) GetTokenId() string

func (*UserSignInData) ProtoMessage

func (*UserSignInData) ProtoMessage()

func (*UserSignInData) ProtoReflect

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

func (*UserSignInData) Reset

func (x *UserSignInData) Reset()

func (*UserSignInData) String

func (x *UserSignInData) String() string

func (*UserSignInData) Validate

func (m *UserSignInData) Validate() error

Validate checks the field values on UserSignInData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserSignInData) ValidateAll

func (m *UserSignInData) ValidateAll() error

ValidateAll checks the field values on UserSignInData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserSignInDataMultiError, or nil if none found.

type UserSignInDataMultiError

type UserSignInDataMultiError []error

UserSignInDataMultiError is an error wrapping multiple validation errors returned by UserSignInData.ValidateAll() if the designated constraints aren't met.

func (UserSignInDataMultiError) AllErrors

func (m UserSignInDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserSignInDataMultiError) Error

func (m UserSignInDataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserSignInDataValidationError

type UserSignInDataValidationError struct {
	// contains filtered or unexported fields
}

UserSignInDataValidationError is the validation error returned by UserSignInData.Validate if the designated constraints aren't met.

func (UserSignInDataValidationError) Cause

Cause function returns cause value.

func (UserSignInDataValidationError) Error

Error satisfies the builtin error interface

func (UserSignInDataValidationError) ErrorName

func (e UserSignInDataValidationError) ErrorName() string

ErrorName returns error name.

func (UserSignInDataValidationError) Field

Field function returns field value.

func (UserSignInDataValidationError) Key

Key function returns key value.

func (UserSignInDataValidationError) Reason

Reason function returns reason value.

type UserSignInReply

type UserSignInReply struct {

	// Types that are assignable to Inner:
	//
	//	*UserSignInReply_Error
	//	*UserSignInReply_Data
	Inner isUserSignInReply_Inner `protobuf_oneof:"inner"`
	// contains filtered or unexported fields
}

func (*UserSignInReply) Descriptor deprecated

func (*UserSignInReply) Descriptor() ([]byte, []int)

Deprecated: Use UserSignInReply.ProtoReflect.Descriptor instead.

func (*UserSignInReply) GetData

func (x *UserSignInReply) GetData() *UserSignInData

func (*UserSignInReply) GetError

func (x *UserSignInReply) GetError() *protobuf.Error

func (*UserSignInReply) GetInner

func (m *UserSignInReply) GetInner() isUserSignInReply_Inner

func (*UserSignInReply) ProtoMessage

func (*UserSignInReply) ProtoMessage()

func (*UserSignInReply) ProtoReflect

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

func (*UserSignInReply) Reset

func (x *UserSignInReply) Reset()

func (*UserSignInReply) String

func (x *UserSignInReply) String() string

func (*UserSignInReply) Validate

func (m *UserSignInReply) Validate() error

Validate checks the field values on UserSignInReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserSignInReply) ValidateAll

func (m *UserSignInReply) ValidateAll() error

ValidateAll checks the field values on UserSignInReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserSignInReplyMultiError, or nil if none found.

type UserSignInReplyMultiError

type UserSignInReplyMultiError []error

UserSignInReplyMultiError is an error wrapping multiple validation errors returned by UserSignInReply.ValidateAll() if the designated constraints aren't met.

func (UserSignInReplyMultiError) AllErrors

func (m UserSignInReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserSignInReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserSignInReplyValidationError

type UserSignInReplyValidationError struct {
	// contains filtered or unexported fields
}

UserSignInReplyValidationError is the validation error returned by UserSignInReply.Validate if the designated constraints aren't met.

func (UserSignInReplyValidationError) Cause

Cause function returns cause value.

func (UserSignInReplyValidationError) Error

Error satisfies the builtin error interface

func (UserSignInReplyValidationError) ErrorName

func (e UserSignInReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UserSignInReplyValidationError) Field

Field function returns field value.

func (UserSignInReplyValidationError) Key

Key function returns key value.

func (UserSignInReplyValidationError) Reason

Reason function returns reason value.

type UserSignInReply_Data

type UserSignInReply_Data struct {
	Data *UserSignInData `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type UserSignInReply_Error

type UserSignInReply_Error struct {
	Error *protobuf.Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type UserSignInRequest

type UserSignInRequest struct {
	Kind     ESignInKind `protobuf:"varint,1,opt,name=kind,proto3,enum=api.authenticator.ESignInKind" json:"kind,omitempty"`
	Username string      `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string      `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSignInRequest) Descriptor deprecated

func (*UserSignInRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserSignInRequest.ProtoReflect.Descriptor instead.

func (*UserSignInRequest) GetKind

func (x *UserSignInRequest) GetKind() ESignInKind

func (*UserSignInRequest) GetPassword

func (x *UserSignInRequest) GetPassword() string

func (*UserSignInRequest) GetUsername

func (x *UserSignInRequest) GetUsername() string

func (*UserSignInRequest) ProtoMessage

func (*UserSignInRequest) ProtoMessage()

func (*UserSignInRequest) ProtoReflect

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

func (*UserSignInRequest) Reset

func (x *UserSignInRequest) Reset()

func (*UserSignInRequest) String

func (x *UserSignInRequest) String() string

func (*UserSignInRequest) Validate

func (m *UserSignInRequest) Validate() error

Validate checks the field values on UserSignInRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserSignInRequest) ValidateAll

func (m *UserSignInRequest) ValidateAll() error

ValidateAll checks the field values on UserSignInRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserSignInRequestMultiError, or nil if none found.

type UserSignInRequestMultiError

type UserSignInRequestMultiError []error

UserSignInRequestMultiError is an error wrapping multiple validation errors returned by UserSignInRequest.ValidateAll() if the designated constraints aren't met.

func (UserSignInRequestMultiError) AllErrors

func (m UserSignInRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserSignInRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserSignInRequestValidationError

type UserSignInRequestValidationError struct {
	// contains filtered or unexported fields
}

UserSignInRequestValidationError is the validation error returned by UserSignInRequest.Validate if the designated constraints aren't met.

func (UserSignInRequestValidationError) Cause

Cause function returns cause value.

func (UserSignInRequestValidationError) Error

Error satisfies the builtin error interface

func (UserSignInRequestValidationError) ErrorName

ErrorName returns error name.

func (UserSignInRequestValidationError) Field

Field function returns field value.

func (UserSignInRequestValidationError) Key

Key function returns key value.

func (UserSignInRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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