auth

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthService_Login_FullMethodName                  = "/services.auth.AuthService/Login"
	AuthService_Logout_FullMethodName                 = "/services.auth.AuthService/Logout"
	AuthService_CreateAccount_FullMethodName          = "/services.auth.AuthService/CreateAccount"
	AuthService_ChangeUsername_FullMethodName         = "/services.auth.AuthService/ChangeUsername"
	AuthService_ChangePassword_FullMethodName         = "/services.auth.AuthService/ChangePassword"
	AuthService_ForgotPassword_FullMethodName         = "/services.auth.AuthService/ForgotPassword"
	AuthService_GetCharacters_FullMethodName          = "/services.auth.AuthService/GetCharacters"
	AuthService_ChooseCharacter_FullMethodName        = "/services.auth.AuthService/ChooseCharacter"
	AuthService_GetAccountInfo_FullMethodName         = "/services.auth.AuthService/GetAccountInfo"
	AuthService_DeleteOAuth2Connection_FullMethodName = "/services.auth.AuthService/DeleteOAuth2Connection"
	AuthService_SetSuperUserMode_FullMethodName       = "/services.auth.AuthService/SetSuperUserMode"
)

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _AuthService_Logout_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _AuthService_CreateAccount_Handler,
		},
		{
			MethodName: "ChangeUsername",
			Handler:    _AuthService_ChangeUsername_Handler,
		},
		{
			MethodName: "ChangePassword",
			Handler:    _AuthService_ChangePassword_Handler,
		},
		{
			MethodName: "ForgotPassword",
			Handler:    _AuthService_ForgotPassword_Handler,
		},
		{
			MethodName: "GetCharacters",
			Handler:    _AuthService_GetCharacters_Handler,
		},
		{
			MethodName: "ChooseCharacter",
			Handler:    _AuthService_ChooseCharacter_Handler,
		},
		{
			MethodName: "GetAccountInfo",
			Handler:    _AuthService_GetAccountInfo_Handler,
		},
		{
			MethodName: "DeleteOAuth2Connection",
			Handler:    _AuthService_DeleteOAuth2Connection_Handler,
		},
		{
			MethodName: "SetSuperUserMode",
			Handler:    _AuthService_SetSuperUserMode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/auth/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 (
	ErrGenericAccount = status.Error(codes.Internal, "errors.AuthService.ErrGenericAccount")
)
View Source
var File_services_auth_auth_proto protoreflect.FileDescriptor
View Source
var Module = fx.Module("proto-services-auth",
	fx.Provide(
		NewServer,
	),
)

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type ChangePasswordRequest

type ChangePasswordRequest struct {
	Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"`
	New     string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordRequest) Descriptor deprecated

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

Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangePasswordRequest) GetCurrent

func (x *ChangePasswordRequest) GetCurrent() string

func (*ChangePasswordRequest) GetNew

func (x *ChangePasswordRequest) GetNew() string

func (*ChangePasswordRequest) ProtoMessage

func (*ChangePasswordRequest) ProtoMessage()

func (*ChangePasswordRequest) ProtoReflect

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

func (*ChangePasswordRequest) Reset

func (x *ChangePasswordRequest) Reset()

func (*ChangePasswordRequest) String

func (x *ChangePasswordRequest) String() string

func (*ChangePasswordRequest) Validate

func (m *ChangePasswordRequest) Validate() error

Validate checks the field values on ChangePasswordRequest 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 (*ChangePasswordRequest) ValidateAll

func (m *ChangePasswordRequest) ValidateAll() error

ValidateAll checks the field values on ChangePasswordRequest 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 ChangePasswordRequestMultiError, or nil if none found.

type ChangePasswordRequestMultiError

type ChangePasswordRequestMultiError []error

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

func (ChangePasswordRequestMultiError) AllErrors

func (m ChangePasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangePasswordRequestMultiError) Error

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

type ChangePasswordRequestValidationError

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

ChangePasswordRequestValidationError is the validation error returned by ChangePasswordRequest.Validate if the designated constraints aren't met.

func (ChangePasswordRequestValidationError) Cause

Cause function returns cause value.

func (ChangePasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ChangePasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ChangePasswordRequestValidationError) Field

Field function returns field value.

func (ChangePasswordRequestValidationError) Key

Key function returns key value.

func (ChangePasswordRequestValidationError) Reason

Reason function returns reason value.

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Token   string               `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Expires *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordResponse) Descriptor deprecated

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

Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.

func (*ChangePasswordResponse) GetExpires

func (x *ChangePasswordResponse) GetExpires() *timestamp.Timestamp

func (*ChangePasswordResponse) GetToken

func (x *ChangePasswordResponse) GetToken() string

func (*ChangePasswordResponse) ProtoMessage

func (*ChangePasswordResponse) ProtoMessage()

func (*ChangePasswordResponse) ProtoReflect

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

func (*ChangePasswordResponse) Reset

func (x *ChangePasswordResponse) Reset()

func (*ChangePasswordResponse) String

func (x *ChangePasswordResponse) String() string

func (*ChangePasswordResponse) Validate

func (m *ChangePasswordResponse) Validate() error

Validate checks the field values on ChangePasswordResponse 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 (*ChangePasswordResponse) ValidateAll

func (m *ChangePasswordResponse) ValidateAll() error

ValidateAll checks the field values on ChangePasswordResponse 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 ChangePasswordResponseMultiError, or nil if none found.

type ChangePasswordResponseMultiError

type ChangePasswordResponseMultiError []error

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

func (ChangePasswordResponseMultiError) AllErrors

func (m ChangePasswordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangePasswordResponseMultiError) Error

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

type ChangePasswordResponseValidationError

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

ChangePasswordResponseValidationError is the validation error returned by ChangePasswordResponse.Validate if the designated constraints aren't met.

func (ChangePasswordResponseValidationError) Cause

Cause function returns cause value.

func (ChangePasswordResponseValidationError) Error

Error satisfies the builtin error interface

func (ChangePasswordResponseValidationError) ErrorName

ErrorName returns error name.

func (ChangePasswordResponseValidationError) Field

Field function returns field value.

func (ChangePasswordResponseValidationError) Key

Key function returns key value.

func (ChangePasswordResponseValidationError) Reason

Reason function returns reason value.

type ChangeUsernameRequest added in v0.8.11

type ChangeUsernameRequest struct {
	Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"`
	New     string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeUsernameRequest) Descriptor deprecated added in v0.8.11

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

Deprecated: Use ChangeUsernameRequest.ProtoReflect.Descriptor instead.

func (*ChangeUsernameRequest) GetCurrent added in v0.8.11

func (x *ChangeUsernameRequest) GetCurrent() string

func (*ChangeUsernameRequest) GetNew added in v0.8.11

func (x *ChangeUsernameRequest) GetNew() string

func (*ChangeUsernameRequest) ProtoMessage added in v0.8.11

func (*ChangeUsernameRequest) ProtoMessage()

func (*ChangeUsernameRequest) ProtoReflect added in v0.8.11

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

func (*ChangeUsernameRequest) Reset added in v0.8.11

func (x *ChangeUsernameRequest) Reset()

func (*ChangeUsernameRequest) String added in v0.8.11

func (x *ChangeUsernameRequest) String() string

func (*ChangeUsernameRequest) Validate added in v0.8.11

func (m *ChangeUsernameRequest) Validate() error

Validate checks the field values on ChangeUsernameRequest 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 (*ChangeUsernameRequest) ValidateAll added in v0.8.11

func (m *ChangeUsernameRequest) ValidateAll() error

ValidateAll checks the field values on ChangeUsernameRequest 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 ChangeUsernameRequestMultiError, or nil if none found.

type ChangeUsernameRequestMultiError added in v0.8.11

type ChangeUsernameRequestMultiError []error

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

func (ChangeUsernameRequestMultiError) AllErrors added in v0.8.11

func (m ChangeUsernameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangeUsernameRequestMultiError) Error added in v0.8.11

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

type ChangeUsernameRequestValidationError added in v0.8.11

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

ChangeUsernameRequestValidationError is the validation error returned by ChangeUsernameRequest.Validate if the designated constraints aren't met.

func (ChangeUsernameRequestValidationError) Cause added in v0.8.11

Cause function returns cause value.

func (ChangeUsernameRequestValidationError) Error added in v0.8.11

Error satisfies the builtin error interface

func (ChangeUsernameRequestValidationError) ErrorName added in v0.8.11

ErrorName returns error name.

func (ChangeUsernameRequestValidationError) Field added in v0.8.11

Field function returns field value.

func (ChangeUsernameRequestValidationError) Key added in v0.8.11

Key function returns key value.

func (ChangeUsernameRequestValidationError) Reason added in v0.8.11

Reason function returns reason value.

type ChangeUsernameResponse added in v0.8.11

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

func (*ChangeUsernameResponse) Descriptor deprecated added in v0.8.11

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

Deprecated: Use ChangeUsernameResponse.ProtoReflect.Descriptor instead.

func (*ChangeUsernameResponse) ProtoMessage added in v0.8.11

func (*ChangeUsernameResponse) ProtoMessage()

func (*ChangeUsernameResponse) ProtoReflect added in v0.8.11

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

func (*ChangeUsernameResponse) Reset added in v0.8.11

func (x *ChangeUsernameResponse) Reset()

func (*ChangeUsernameResponse) String added in v0.8.11

func (x *ChangeUsernameResponse) String() string

func (*ChangeUsernameResponse) Validate added in v0.8.11

func (m *ChangeUsernameResponse) Validate() error

Validate checks the field values on ChangeUsernameResponse 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 (*ChangeUsernameResponse) ValidateAll added in v0.8.11

func (m *ChangeUsernameResponse) ValidateAll() error

ValidateAll checks the field values on ChangeUsernameResponse 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 ChangeUsernameResponseMultiError, or nil if none found.

type ChangeUsernameResponseMultiError added in v0.8.11

type ChangeUsernameResponseMultiError []error

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

func (ChangeUsernameResponseMultiError) AllErrors added in v0.8.11

func (m ChangeUsernameResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChangeUsernameResponseMultiError) Error added in v0.8.11

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

type ChangeUsernameResponseValidationError added in v0.8.11

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

ChangeUsernameResponseValidationError is the validation error returned by ChangeUsernameResponse.Validate if the designated constraints aren't met.

func (ChangeUsernameResponseValidationError) Cause added in v0.8.11

Cause function returns cause value.

func (ChangeUsernameResponseValidationError) Error added in v0.8.11

Error satisfies the builtin error interface

func (ChangeUsernameResponseValidationError) ErrorName added in v0.8.11

ErrorName returns error name.

func (ChangeUsernameResponseValidationError) Field added in v0.8.11

Field function returns field value.

func (ChangeUsernameResponseValidationError) Key added in v0.8.11

Key function returns key value.

func (ChangeUsernameResponseValidationError) Reason added in v0.8.11

Reason function returns reason value.

type ChooseCharacterRequest

type ChooseCharacterRequest struct {
	CharId int32 `protobuf:"varint,1,opt,name=char_id,json=charId,proto3" json:"char_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ChooseCharacterRequest) Descriptor deprecated

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

Deprecated: Use ChooseCharacterRequest.ProtoReflect.Descriptor instead.

func (*ChooseCharacterRequest) GetCharId

func (x *ChooseCharacterRequest) GetCharId() int32

func (*ChooseCharacterRequest) ProtoMessage

func (*ChooseCharacterRequest) ProtoMessage()

func (*ChooseCharacterRequest) ProtoReflect

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

func (*ChooseCharacterRequest) Reset

func (x *ChooseCharacterRequest) Reset()

func (*ChooseCharacterRequest) String

func (x *ChooseCharacterRequest) String() string

func (*ChooseCharacterRequest) Validate

func (m *ChooseCharacterRequest) Validate() error

Validate checks the field values on ChooseCharacterRequest 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 (*ChooseCharacterRequest) ValidateAll

func (m *ChooseCharacterRequest) ValidateAll() error

ValidateAll checks the field values on ChooseCharacterRequest 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 ChooseCharacterRequestMultiError, or nil if none found.

type ChooseCharacterRequestMultiError

type ChooseCharacterRequestMultiError []error

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

func (ChooseCharacterRequestMultiError) AllErrors

func (m ChooseCharacterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChooseCharacterRequestMultiError) Error

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

type ChooseCharacterRequestValidationError

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

ChooseCharacterRequestValidationError is the validation error returned by ChooseCharacterRequest.Validate if the designated constraints aren't met.

func (ChooseCharacterRequestValidationError) Cause

Cause function returns cause value.

func (ChooseCharacterRequestValidationError) Error

Error satisfies the builtin error interface

func (ChooseCharacterRequestValidationError) ErrorName

ErrorName returns error name.

func (ChooseCharacterRequestValidationError) Field

Field function returns field value.

func (ChooseCharacterRequestValidationError) Key

Key function returns key value.

func (ChooseCharacterRequestValidationError) Reason

Reason function returns reason value.

type ChooseCharacterResponse

type ChooseCharacterResponse struct {
	Token       string               `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Expires     *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
	Permissions []string             `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	JobProps    *users.JobProps      `protobuf:"bytes,4,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"`
	Char        *users.User          `protobuf:"bytes,5,opt,name=char,proto3" json:"char,omitempty"`
	// contains filtered or unexported fields
}

func (*ChooseCharacterResponse) Descriptor deprecated

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

Deprecated: Use ChooseCharacterResponse.ProtoReflect.Descriptor instead.

func (*ChooseCharacterResponse) GetChar

func (x *ChooseCharacterResponse) GetChar() *users.User

func (*ChooseCharacterResponse) GetExpires

func (x *ChooseCharacterResponse) GetExpires() *timestamp.Timestamp

func (*ChooseCharacterResponse) GetJobProps

func (x *ChooseCharacterResponse) GetJobProps() *users.JobProps

func (*ChooseCharacterResponse) GetPermissions

func (x *ChooseCharacterResponse) GetPermissions() []string

func (*ChooseCharacterResponse) GetToken

func (x *ChooseCharacterResponse) GetToken() string

func (*ChooseCharacterResponse) ProtoMessage

func (*ChooseCharacterResponse) ProtoMessage()

func (*ChooseCharacterResponse) ProtoReflect

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

func (*ChooseCharacterResponse) Reset

func (x *ChooseCharacterResponse) Reset()

func (*ChooseCharacterResponse) String

func (x *ChooseCharacterResponse) String() string

func (*ChooseCharacterResponse) Validate

func (m *ChooseCharacterResponse) Validate() error

Validate checks the field values on ChooseCharacterResponse 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 (*ChooseCharacterResponse) ValidateAll

func (m *ChooseCharacterResponse) ValidateAll() error

ValidateAll checks the field values on ChooseCharacterResponse 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 ChooseCharacterResponseMultiError, or nil if none found.

type ChooseCharacterResponseMultiError

type ChooseCharacterResponseMultiError []error

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

func (ChooseCharacterResponseMultiError) AllErrors

func (m ChooseCharacterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChooseCharacterResponseMultiError) Error

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

type ChooseCharacterResponseValidationError

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

ChooseCharacterResponseValidationError is the validation error returned by ChooseCharacterResponse.Validate if the designated constraints aren't met.

func (ChooseCharacterResponseValidationError) Cause

Cause function returns cause value.

func (ChooseCharacterResponseValidationError) Error

Error satisfies the builtin error interface

func (ChooseCharacterResponseValidationError) ErrorName

ErrorName returns error name.

func (ChooseCharacterResponseValidationError) Field

Field function returns field value.

func (ChooseCharacterResponseValidationError) Key

Key function returns key value.

func (ChooseCharacterResponseValidationError) Reason

Reason function returns reason value.

type CreateAccountRequest

type CreateAccountRequest struct {
	RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,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 (*CreateAccountRequest) Descriptor deprecated

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

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetPassword

func (x *CreateAccountRequest) GetPassword() string

func (*CreateAccountRequest) GetRegToken

func (x *CreateAccountRequest) GetRegToken() string

func (*CreateAccountRequest) GetUsername

func (x *CreateAccountRequest) GetUsername() string

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

func (*CreateAccountRequest) Validate

func (m *CreateAccountRequest) Validate() error

Validate checks the field values on CreateAccountRequest 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 (*CreateAccountRequest) ValidateAll

func (m *CreateAccountRequest) ValidateAll() error

ValidateAll checks the field values on CreateAccountRequest 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 CreateAccountRequestMultiError, or nil if none found.

type CreateAccountRequestMultiError

type CreateAccountRequestMultiError []error

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

func (CreateAccountRequestMultiError) AllErrors

func (m CreateAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAccountRequestMultiError) Error

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

type CreateAccountRequestValidationError

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

CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.

func (CreateAccountRequestValidationError) Cause

Cause function returns cause value.

func (CreateAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountRequestValidationError) Field

Field function returns field value.

func (CreateAccountRequestValidationError) Key

Key function returns key value.

func (CreateAccountRequestValidationError) Reason

Reason function returns reason value.

type CreateAccountResponse

type CreateAccountResponse struct {
	AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponse) Descriptor deprecated

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

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAccountId added in v0.8.0

func (x *CreateAccountResponse) GetAccountId() uint64

func (*CreateAccountResponse) ProtoMessage

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect

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

func (*CreateAccountResponse) Reset

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String

func (x *CreateAccountResponse) String() string

func (*CreateAccountResponse) Validate

func (m *CreateAccountResponse) Validate() error

Validate checks the field values on CreateAccountResponse 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 (*CreateAccountResponse) ValidateAll

func (m *CreateAccountResponse) ValidateAll() error

ValidateAll checks the field values on CreateAccountResponse 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 CreateAccountResponseMultiError, or nil if none found.

type CreateAccountResponseMultiError

type CreateAccountResponseMultiError []error

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

func (CreateAccountResponseMultiError) AllErrors

func (m CreateAccountResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAccountResponseMultiError) Error

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

type CreateAccountResponseValidationError

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

CreateAccountResponseValidationError is the validation error returned by CreateAccountResponse.Validate if the designated constraints aren't met.

func (CreateAccountResponseValidationError) Cause

Cause function returns cause value.

func (CreateAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountResponseValidationError) Field

Field function returns field value.

func (CreateAccountResponseValidationError) Key

Key function returns key value.

func (CreateAccountResponseValidationError) Reason

Reason function returns reason value.

type DeleteOAuth2ConnectionRequest

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

func (*DeleteOAuth2ConnectionRequest) Descriptor deprecated

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

Deprecated: Use DeleteOAuth2ConnectionRequest.ProtoReflect.Descriptor instead.

func (*DeleteOAuth2ConnectionRequest) GetProvider

func (x *DeleteOAuth2ConnectionRequest) GetProvider() string

func (*DeleteOAuth2ConnectionRequest) ProtoMessage

func (*DeleteOAuth2ConnectionRequest) ProtoMessage()

func (*DeleteOAuth2ConnectionRequest) ProtoReflect

func (*DeleteOAuth2ConnectionRequest) Reset

func (x *DeleteOAuth2ConnectionRequest) Reset()

func (*DeleteOAuth2ConnectionRequest) String

func (*DeleteOAuth2ConnectionRequest) Validate

func (m *DeleteOAuth2ConnectionRequest) Validate() error

Validate checks the field values on DeleteOAuth2ConnectionRequest 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 (*DeleteOAuth2ConnectionRequest) ValidateAll

func (m *DeleteOAuth2ConnectionRequest) ValidateAll() error

ValidateAll checks the field values on DeleteOAuth2ConnectionRequest 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 DeleteOAuth2ConnectionRequestMultiError, or nil if none found.

type DeleteOAuth2ConnectionRequestMultiError

type DeleteOAuth2ConnectionRequestMultiError []error

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

func (DeleteOAuth2ConnectionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteOAuth2ConnectionRequestMultiError) Error

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

type DeleteOAuth2ConnectionRequestValidationError

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

DeleteOAuth2ConnectionRequestValidationError is the validation error returned by DeleteOAuth2ConnectionRequest.Validate if the designated constraints aren't met.

func (DeleteOAuth2ConnectionRequestValidationError) Cause

Cause function returns cause value.

func (DeleteOAuth2ConnectionRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteOAuth2ConnectionRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteOAuth2ConnectionRequestValidationError) Field

Field function returns field value.

func (DeleteOAuth2ConnectionRequestValidationError) Key

Key function returns key value.

func (DeleteOAuth2ConnectionRequestValidationError) Reason

Reason function returns reason value.

type DeleteOAuth2ConnectionResponse

type DeleteOAuth2ConnectionResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOAuth2ConnectionResponse) Descriptor deprecated

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

Deprecated: Use DeleteOAuth2ConnectionResponse.ProtoReflect.Descriptor instead.

func (*DeleteOAuth2ConnectionResponse) GetSuccess

func (x *DeleteOAuth2ConnectionResponse) GetSuccess() bool

func (*DeleteOAuth2ConnectionResponse) ProtoMessage

func (*DeleteOAuth2ConnectionResponse) ProtoMessage()

func (*DeleteOAuth2ConnectionResponse) ProtoReflect

func (*DeleteOAuth2ConnectionResponse) Reset

func (x *DeleteOAuth2ConnectionResponse) Reset()

func (*DeleteOAuth2ConnectionResponse) String

func (*DeleteOAuth2ConnectionResponse) Validate

func (m *DeleteOAuth2ConnectionResponse) Validate() error

Validate checks the field values on DeleteOAuth2ConnectionResponse 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 (*DeleteOAuth2ConnectionResponse) ValidateAll

func (m *DeleteOAuth2ConnectionResponse) ValidateAll() error

ValidateAll checks the field values on DeleteOAuth2ConnectionResponse 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 DeleteOAuth2ConnectionResponseMultiError, or nil if none found.

type DeleteOAuth2ConnectionResponseMultiError

type DeleteOAuth2ConnectionResponseMultiError []error

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

func (DeleteOAuth2ConnectionResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteOAuth2ConnectionResponseMultiError) Error

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

type DeleteOAuth2ConnectionResponseValidationError

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

DeleteOAuth2ConnectionResponseValidationError is the validation error returned by DeleteOAuth2ConnectionResponse.Validate if the designated constraints aren't met.

func (DeleteOAuth2ConnectionResponseValidationError) Cause

Cause function returns cause value.

func (DeleteOAuth2ConnectionResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteOAuth2ConnectionResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteOAuth2ConnectionResponseValidationError) Field

Field function returns field value.

func (DeleteOAuth2ConnectionResponseValidationError) Key

Key function returns key value.

func (DeleteOAuth2ConnectionResponseValidationError) Reason

Reason function returns reason value.

type ForgotPasswordRequest

type ForgotPasswordRequest struct {
	RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,omitempty"`
	New      string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*ForgotPasswordRequest) Descriptor deprecated

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

Deprecated: Use ForgotPasswordRequest.ProtoReflect.Descriptor instead.

func (*ForgotPasswordRequest) GetNew

func (x *ForgotPasswordRequest) GetNew() string

func (*ForgotPasswordRequest) GetRegToken

func (x *ForgotPasswordRequest) GetRegToken() string

func (*ForgotPasswordRequest) ProtoMessage

func (*ForgotPasswordRequest) ProtoMessage()

func (*ForgotPasswordRequest) ProtoReflect

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

func (*ForgotPasswordRequest) Reset

func (x *ForgotPasswordRequest) Reset()

func (*ForgotPasswordRequest) String

func (x *ForgotPasswordRequest) String() string

func (*ForgotPasswordRequest) Validate

func (m *ForgotPasswordRequest) Validate() error

Validate checks the field values on ForgotPasswordRequest 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 (*ForgotPasswordRequest) ValidateAll

func (m *ForgotPasswordRequest) ValidateAll() error

ValidateAll checks the field values on ForgotPasswordRequest 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 ForgotPasswordRequestMultiError, or nil if none found.

type ForgotPasswordRequestMultiError

type ForgotPasswordRequestMultiError []error

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

func (ForgotPasswordRequestMultiError) AllErrors

func (m ForgotPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ForgotPasswordRequestMultiError) Error

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

type ForgotPasswordRequestValidationError

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

ForgotPasswordRequestValidationError is the validation error returned by ForgotPasswordRequest.Validate if the designated constraints aren't met.

func (ForgotPasswordRequestValidationError) Cause

Cause function returns cause value.

func (ForgotPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ForgotPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ForgotPasswordRequestValidationError) Field

Field function returns field value.

func (ForgotPasswordRequestValidationError) Key

Key function returns key value.

func (ForgotPasswordRequestValidationError) Reason

Reason function returns reason value.

type ForgotPasswordResponse

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

func (*ForgotPasswordResponse) Descriptor deprecated

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

Deprecated: Use ForgotPasswordResponse.ProtoReflect.Descriptor instead.

func (*ForgotPasswordResponse) ProtoMessage

func (*ForgotPasswordResponse) ProtoMessage()

func (*ForgotPasswordResponse) ProtoReflect

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

func (*ForgotPasswordResponse) Reset

func (x *ForgotPasswordResponse) Reset()

func (*ForgotPasswordResponse) String

func (x *ForgotPasswordResponse) String() string

func (*ForgotPasswordResponse) Validate

func (m *ForgotPasswordResponse) Validate() error

Validate checks the field values on ForgotPasswordResponse 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 (*ForgotPasswordResponse) ValidateAll

func (m *ForgotPasswordResponse) ValidateAll() error

ValidateAll checks the field values on ForgotPasswordResponse 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 ForgotPasswordResponseMultiError, or nil if none found.

type ForgotPasswordResponseMultiError

type ForgotPasswordResponseMultiError []error

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

func (ForgotPasswordResponseMultiError) AllErrors

func (m ForgotPasswordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ForgotPasswordResponseMultiError) Error

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

type ForgotPasswordResponseValidationError

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

ForgotPasswordResponseValidationError is the validation error returned by ForgotPasswordResponse.Validate if the designated constraints aren't met.

func (ForgotPasswordResponseValidationError) Cause

Cause function returns cause value.

func (ForgotPasswordResponseValidationError) Error

Error satisfies the builtin error interface

func (ForgotPasswordResponseValidationError) ErrorName

ErrorName returns error name.

func (ForgotPasswordResponseValidationError) Field

Field function returns field value.

func (ForgotPasswordResponseValidationError) Key

Key function returns key value.

func (ForgotPasswordResponseValidationError) Reason

Reason function returns reason value.

type GetAccountInfoRequest

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

func (*GetAccountInfoRequest) Descriptor deprecated

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

Deprecated: Use GetAccountInfoRequest.ProtoReflect.Descriptor instead.

func (*GetAccountInfoRequest) ProtoMessage

func (*GetAccountInfoRequest) ProtoMessage()

func (*GetAccountInfoRequest) ProtoReflect

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

func (*GetAccountInfoRequest) Reset

func (x *GetAccountInfoRequest) Reset()

func (*GetAccountInfoRequest) String

func (x *GetAccountInfoRequest) String() string

func (*GetAccountInfoRequest) Validate

func (m *GetAccountInfoRequest) Validate() error

Validate checks the field values on GetAccountInfoRequest 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 (*GetAccountInfoRequest) ValidateAll

func (m *GetAccountInfoRequest) ValidateAll() error

ValidateAll checks the field values on GetAccountInfoRequest 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 GetAccountInfoRequestMultiError, or nil if none found.

type GetAccountInfoRequestMultiError

type GetAccountInfoRequestMultiError []error

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

func (GetAccountInfoRequestMultiError) AllErrors

func (m GetAccountInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAccountInfoRequestMultiError) Error

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

type GetAccountInfoRequestValidationError

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

GetAccountInfoRequestValidationError is the validation error returned by GetAccountInfoRequest.Validate if the designated constraints aren't met.

func (GetAccountInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetAccountInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoRequestValidationError) Field

Field function returns field value.

func (GetAccountInfoRequestValidationError) Key

Key function returns key value.

func (GetAccountInfoRequestValidationError) Reason

Reason function returns reason value.

type GetAccountInfoResponse

type GetAccountInfoResponse struct {
	Account           *accounts.Account          `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Oauth2Providers   []*accounts.OAuth2Provider `protobuf:"bytes,2,rep,name=oauth2_providers,json=oauth2Providers,proto3" json:"oauth2_providers,omitempty"`
	Oauth2Connections []*accounts.OAuth2Account  `protobuf:"bytes,3,rep,name=oauth2_connections,json=oauth2Connections,proto3" json:"oauth2_connections,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountInfoResponse) Descriptor deprecated

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

Deprecated: Use GetAccountInfoResponse.ProtoReflect.Descriptor instead.

func (*GetAccountInfoResponse) GetAccount

func (x *GetAccountInfoResponse) GetAccount() *accounts.Account

func (*GetAccountInfoResponse) GetOauth2Connections

func (x *GetAccountInfoResponse) GetOauth2Connections() []*accounts.OAuth2Account

func (*GetAccountInfoResponse) GetOauth2Providers

func (x *GetAccountInfoResponse) GetOauth2Providers() []*accounts.OAuth2Provider

func (*GetAccountInfoResponse) ProtoMessage

func (*GetAccountInfoResponse) ProtoMessage()

func (*GetAccountInfoResponse) ProtoReflect

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

func (*GetAccountInfoResponse) Reset

func (x *GetAccountInfoResponse) Reset()

func (*GetAccountInfoResponse) String

func (x *GetAccountInfoResponse) String() string

func (*GetAccountInfoResponse) Validate

func (m *GetAccountInfoResponse) Validate() error

Validate checks the field values on GetAccountInfoResponse 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 (*GetAccountInfoResponse) ValidateAll

func (m *GetAccountInfoResponse) ValidateAll() error

ValidateAll checks the field values on GetAccountInfoResponse 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 GetAccountInfoResponseMultiError, or nil if none found.

type GetAccountInfoResponseMultiError

type GetAccountInfoResponseMultiError []error

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

func (GetAccountInfoResponseMultiError) AllErrors

func (m GetAccountInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAccountInfoResponseMultiError) Error

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

type GetAccountInfoResponseValidationError

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

GetAccountInfoResponseValidationError is the validation error returned by GetAccountInfoResponse.Validate if the designated constraints aren't met.

func (GetAccountInfoResponseValidationError) Cause

Cause function returns cause value.

func (GetAccountInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoResponseValidationError) Field

Field function returns field value.

func (GetAccountInfoResponseValidationError) Key

Key function returns key value.

func (GetAccountInfoResponseValidationError) Reason

Reason function returns reason value.

type GetCharactersRequest

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

func (*GetCharactersRequest) Descriptor deprecated

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

Deprecated: Use GetCharactersRequest.ProtoReflect.Descriptor instead.

func (*GetCharactersRequest) ProtoMessage

func (*GetCharactersRequest) ProtoMessage()

func (*GetCharactersRequest) ProtoReflect

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

func (*GetCharactersRequest) Reset

func (x *GetCharactersRequest) Reset()

func (*GetCharactersRequest) String

func (x *GetCharactersRequest) String() string

func (*GetCharactersRequest) Validate

func (m *GetCharactersRequest) Validate() error

Validate checks the field values on GetCharactersRequest 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 (*GetCharactersRequest) ValidateAll

func (m *GetCharactersRequest) ValidateAll() error

ValidateAll checks the field values on GetCharactersRequest 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 GetCharactersRequestMultiError, or nil if none found.

type GetCharactersRequestMultiError

type GetCharactersRequestMultiError []error

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

func (GetCharactersRequestMultiError) AllErrors

func (m GetCharactersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCharactersRequestMultiError) Error

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

type GetCharactersRequestValidationError

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

GetCharactersRequestValidationError is the validation error returned by GetCharactersRequest.Validate if the designated constraints aren't met.

func (GetCharactersRequestValidationError) Cause

Cause function returns cause value.

func (GetCharactersRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCharactersRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCharactersRequestValidationError) Field

Field function returns field value.

func (GetCharactersRequestValidationError) Key

Key function returns key value.

func (GetCharactersRequestValidationError) Reason

Reason function returns reason value.

type GetCharactersResponse

type GetCharactersResponse struct {
	Chars []*users.User `protobuf:"bytes,1,rep,name=chars,proto3" json:"chars,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCharactersResponse) Descriptor deprecated

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

Deprecated: Use GetCharactersResponse.ProtoReflect.Descriptor instead.

func (*GetCharactersResponse) GetChars

func (x *GetCharactersResponse) GetChars() []*users.User

func (*GetCharactersResponse) ProtoMessage

func (*GetCharactersResponse) ProtoMessage()

func (*GetCharactersResponse) ProtoReflect

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

func (*GetCharactersResponse) Reset

func (x *GetCharactersResponse) Reset()

func (*GetCharactersResponse) String

func (x *GetCharactersResponse) String() string

func (*GetCharactersResponse) Validate

func (m *GetCharactersResponse) Validate() error

Validate checks the field values on GetCharactersResponse 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 (*GetCharactersResponse) ValidateAll

func (m *GetCharactersResponse) ValidateAll() error

ValidateAll checks the field values on GetCharactersResponse 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 GetCharactersResponseMultiError, or nil if none found.

type GetCharactersResponseMultiError

type GetCharactersResponseMultiError []error

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

func (GetCharactersResponseMultiError) AllErrors

func (m GetCharactersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCharactersResponseMultiError) Error

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

type GetCharactersResponseValidationError

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

GetCharactersResponseValidationError is the validation error returned by GetCharactersResponse.Validate if the designated constraints aren't met.

func (GetCharactersResponseValidationError) Cause

Cause function returns cause value.

func (GetCharactersResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCharactersResponseValidationError) ErrorName

ErrorName returns error name.

func (GetCharactersResponseValidationError) Field

Field function returns field value.

func (GetCharactersResponseValidationError) Key

Key function returns key value.

func (GetCharactersResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

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

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

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

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

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

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	Token     string               `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Expires   *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
	AccountId uint64               `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAccountId added in v0.6.5

func (x *LoginResponse) GetAccountId() uint64

func (*LoginResponse) GetExpires

func (x *LoginResponse) GetExpires() *timestamp.Timestamp

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

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

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

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

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type LogoutRequest

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

func (*LogoutRequest) Descriptor deprecated

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

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

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

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

func (*LogoutRequest) Validate

func (m *LogoutRequest) Validate() error

Validate checks the field values on LogoutRequest 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 (*LogoutRequest) ValidateAll

func (m *LogoutRequest) ValidateAll() error

ValidateAll checks the field values on LogoutRequest 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 LogoutRequestMultiError, or nil if none found.

type LogoutRequestMultiError

type LogoutRequestMultiError []error

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

func (LogoutRequestMultiError) AllErrors

func (m LogoutRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutRequestMultiError) Error

func (m LogoutRequestMultiError) Error() string

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

type LogoutRequestValidationError

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

LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.

func (LogoutRequestValidationError) Cause

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

Reason function returns reason value.

type LogoutResponse

type LogoutResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutResponse) Descriptor deprecated

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

Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.

func (*LogoutResponse) GetSuccess

func (x *LogoutResponse) GetSuccess() bool

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) ProtoReflect

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

func (*LogoutResponse) Reset

func (x *LogoutResponse) Reset()

func (*LogoutResponse) String

func (x *LogoutResponse) String() string

func (*LogoutResponse) Validate

func (m *LogoutResponse) Validate() error

Validate checks the field values on LogoutResponse 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 (*LogoutResponse) ValidateAll

func (m *LogoutResponse) ValidateAll() error

ValidateAll checks the field values on LogoutResponse 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 LogoutResponseMultiError, or nil if none found.

type LogoutResponseMultiError

type LogoutResponseMultiError []error

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

func (LogoutResponseMultiError) AllErrors

func (m LogoutResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutResponseMultiError) Error

func (m LogoutResponseMultiError) Error() string

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

type LogoutResponseValidationError

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

LogoutResponseValidationError is the validation error returned by LogoutResponse.Validate if the designated constraints aren't met.

func (LogoutResponseValidationError) Cause

Cause function returns cause value.

func (LogoutResponseValidationError) Error

Error satisfies the builtin error interface

func (LogoutResponseValidationError) ErrorName

func (e LogoutResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutResponseValidationError) Field

Field function returns field value.

func (LogoutResponseValidationError) Key

Key function returns key value.

func (LogoutResponseValidationError) Reason

Reason function returns reason value.

type Params added in v0.8.11

type Params struct {
	fx.In

	Logger    *zap.Logger
	DB        *sql.DB
	Auth      *auth.GRPCAuth
	TM        *auth.TokenMgr
	Perms     perms.Permissions
	Enricher  *mstlystcdata.Enricher
	Aud       audit.IAuditer
	UI        userinfo.UserInfoRetriever
	Config    *config.Config
	AppConfig appconfig.IConfig
}

type Server

type Server struct {
	AuthServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) *Server

func (*Server) AuthFuncOverride

func (s *Server) AuthFuncOverride(ctx context.Context, fullMethod string) (context.Context, error)

AuthFuncOverride is called instead of exampleAuthFunc

func (*Server) ChangePassword

func (s *Server) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*ChangePasswordResponse, error)

func (*Server) ChangeUsername added in v0.8.11

func (s *Server) ChangeUsername(ctx context.Context, req *ChangeUsernameRequest) (*ChangeUsernameResponse, error)

func (*Server) ChooseCharacter

func (s *Server) ChooseCharacter(ctx context.Context, req *ChooseCharacterRequest) (*ChooseCharacterResponse, error)

func (*Server) CreateAccount

func (s *Server) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*CreateAccountResponse, error)

func (*Server) DeleteOAuth2Connection

func (*Server) ForgotPassword

func (s *Server) ForgotPassword(ctx context.Context, req *ForgotPasswordRequest) (*ForgotPasswordResponse, error)

func (*Server) GetAccountInfo

func (s *Server) GetAccountInfo(ctx context.Context, req *GetAccountInfoRequest) (*GetAccountInfoResponse, error)

func (*Server) GetCharacters

func (s *Server) GetCharacters(ctx context.Context, req *GetCharactersRequest) (*GetCharactersResponse, error)

func (*Server) Login

func (s *Server) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)

func (*Server) Logout

func (s *Server) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)

func (*Server) PermissionUnaryFuncOverride

func (s *Server) PermissionUnaryFuncOverride(ctx context.Context, info *grpc.UnaryServerInfo) (context.Context, error)

func (*Server) RegisterServer added in v0.8.0

func (s *Server) RegisterServer(srv *grpc.Server)

func (*Server) SetSuperUserMode added in v0.8.21

func (s *Server) SetSuperUserMode(ctx context.Context, req *SetSuperUserModeRequest) (*SetSuperUserModeResponse, error)

type SetSuperUserModeRequest added in v0.8.21

type SetSuperUserModeRequest struct {
	Superuser bool    `protobuf:"varint,1,opt,name=superuser,proto3" json:"superuser,omitempty"`
	Job       *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSuperUserModeRequest) Descriptor deprecated added in v0.8.21

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

Deprecated: Use SetSuperUserModeRequest.ProtoReflect.Descriptor instead.

func (*SetSuperUserModeRequest) GetJob added in v0.8.21

func (x *SetSuperUserModeRequest) GetJob() string

func (*SetSuperUserModeRequest) GetSuperuser added in v0.8.21

func (x *SetSuperUserModeRequest) GetSuperuser() bool

func (*SetSuperUserModeRequest) ProtoMessage added in v0.8.21

func (*SetSuperUserModeRequest) ProtoMessage()

func (*SetSuperUserModeRequest) ProtoReflect added in v0.8.21

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

func (*SetSuperUserModeRequest) Reset added in v0.8.21

func (x *SetSuperUserModeRequest) Reset()

func (*SetSuperUserModeRequest) String added in v0.8.21

func (x *SetSuperUserModeRequest) String() string

func (*SetSuperUserModeRequest) Validate added in v0.8.21

func (m *SetSuperUserModeRequest) Validate() error

Validate checks the field values on SetSuperUserModeRequest 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 (*SetSuperUserModeRequest) ValidateAll added in v0.8.21

func (m *SetSuperUserModeRequest) ValidateAll() error

ValidateAll checks the field values on SetSuperUserModeRequest 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 SetSuperUserModeRequestMultiError, or nil if none found.

type SetSuperUserModeRequestMultiError added in v0.8.21

type SetSuperUserModeRequestMultiError []error

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

func (SetSuperUserModeRequestMultiError) AllErrors added in v0.8.21

func (m SetSuperUserModeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetSuperUserModeRequestMultiError) Error added in v0.8.21

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

type SetSuperUserModeRequestValidationError added in v0.8.21

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

SetSuperUserModeRequestValidationError is the validation error returned by SetSuperUserModeRequest.Validate if the designated constraints aren't met.

func (SetSuperUserModeRequestValidationError) Cause added in v0.8.21

Cause function returns cause value.

func (SetSuperUserModeRequestValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (SetSuperUserModeRequestValidationError) ErrorName added in v0.8.21

ErrorName returns error name.

func (SetSuperUserModeRequestValidationError) Field added in v0.8.21

Field function returns field value.

func (SetSuperUserModeRequestValidationError) Key added in v0.8.21

Key function returns key value.

func (SetSuperUserModeRequestValidationError) Reason added in v0.8.21

Reason function returns reason value.

type SetSuperUserModeResponse added in v0.8.21

type SetSuperUserModeResponse struct {
	Token    string               `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Expires  *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
	JobProps *users.JobProps      `protobuf:"bytes,3,opt,name=job_props,json=jobProps,proto3,oneof" json:"job_props,omitempty"`
	Char     *users.User          `protobuf:"bytes,4,opt,name=char,proto3" json:"char,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSuperUserModeResponse) Descriptor deprecated added in v0.8.21

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

Deprecated: Use SetSuperUserModeResponse.ProtoReflect.Descriptor instead.

func (*SetSuperUserModeResponse) GetChar added in v0.8.21

func (x *SetSuperUserModeResponse) GetChar() *users.User

func (*SetSuperUserModeResponse) GetExpires added in v0.8.21

func (x *SetSuperUserModeResponse) GetExpires() *timestamp.Timestamp

func (*SetSuperUserModeResponse) GetJobProps added in v0.8.21

func (x *SetSuperUserModeResponse) GetJobProps() *users.JobProps

func (*SetSuperUserModeResponse) GetToken added in v0.8.21

func (x *SetSuperUserModeResponse) GetToken() string

func (*SetSuperUserModeResponse) ProtoMessage added in v0.8.21

func (*SetSuperUserModeResponse) ProtoMessage()

func (*SetSuperUserModeResponse) ProtoReflect added in v0.8.21

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

func (*SetSuperUserModeResponse) Reset added in v0.8.21

func (x *SetSuperUserModeResponse) Reset()

func (*SetSuperUserModeResponse) String added in v0.8.21

func (x *SetSuperUserModeResponse) String() string

func (*SetSuperUserModeResponse) Validate added in v0.8.21

func (m *SetSuperUserModeResponse) Validate() error

Validate checks the field values on SetSuperUserModeResponse 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 (*SetSuperUserModeResponse) ValidateAll added in v0.8.21

func (m *SetSuperUserModeResponse) ValidateAll() error

ValidateAll checks the field values on SetSuperUserModeResponse 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 SetSuperUserModeResponseMultiError, or nil if none found.

type SetSuperUserModeResponseMultiError added in v0.8.21

type SetSuperUserModeResponseMultiError []error

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

func (SetSuperUserModeResponseMultiError) AllErrors added in v0.8.21

func (m SetSuperUserModeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetSuperUserModeResponseMultiError) Error added in v0.8.21

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

type SetSuperUserModeResponseValidationError added in v0.8.21

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

SetSuperUserModeResponseValidationError is the validation error returned by SetSuperUserModeResponse.Validate if the designated constraints aren't met.

func (SetSuperUserModeResponseValidationError) Cause added in v0.8.21

Cause function returns cause value.

func (SetSuperUserModeResponseValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (SetSuperUserModeResponseValidationError) ErrorName added in v0.8.21

ErrorName returns error name.

func (SetSuperUserModeResponseValidationError) Field added in v0.8.21

Field function returns field value.

func (SetSuperUserModeResponseValidationError) Key added in v0.8.21

Key function returns key value.

func (SetSuperUserModeResponseValidationError) Reason added in v0.8.21

Reason function returns reason value.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) ChangePassword

func (UnimplementedAuthServiceServer) ChangeUsername added in v0.8.11

func (UnimplementedAuthServiceServer) ChooseCharacter

func (UnimplementedAuthServiceServer) CreateAccount

func (UnimplementedAuthServiceServer) ForgotPassword

func (UnimplementedAuthServiceServer) GetAccountInfo

func (UnimplementedAuthServiceServer) GetCharacters

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Logout

func (UnimplementedAuthServiceServer) SetSuperUserMode added in v0.8.21

type UnsafeAuthServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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