Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetCreatedAt() *timestamp.Timestamp
- func (x *Account) GetId() uint64
- func (x *Account) GetLicense() string
- func (x *Account) GetUpdatedAt() *timestamp.Timestamp
- func (x *Account) GetUsername() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- func (m *Account) ValidateAll() error
- type AccountMultiError
- type AccountValidationError
- type Character
- func (*Character) Descriptor() ([]byte, []int)deprecated
- func (x *Character) GetAvailable() bool
- func (x *Character) GetChar() *users.User
- func (x *Character) GetGroup() string
- func (*Character) ProtoMessage()
- func (x *Character) ProtoReflect() protoreflect.Message
- func (x *Character) Reset()
- func (x *Character) String() string
- func (m *Character) Validate() error
- func (m *Character) ValidateAll() error
- type CharacterMultiError
- type CharacterValidationError
- type OAuth2Account
- func (*OAuth2Account) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2Account) GetAccountId() uint64
- func (x *OAuth2Account) GetAvatar() string
- func (x *OAuth2Account) GetCreatedAt() *timestamp.Timestamp
- func (x *OAuth2Account) GetExternalId() uint64
- func (x *OAuth2Account) GetProvider() *OAuth2Provider
- func (x *OAuth2Account) GetProviderName() string
- func (x *OAuth2Account) GetUsername() string
- func (*OAuth2Account) ProtoMessage()
- func (x *OAuth2Account) ProtoReflect() protoreflect.Message
- func (x *OAuth2Account) Reset()
- func (x *OAuth2Account) String() string
- func (m *OAuth2Account) Validate() error
- func (m *OAuth2Account) ValidateAll() error
- type OAuth2AccountMultiError
- type OAuth2AccountValidationError
- func (e OAuth2AccountValidationError) Cause() error
- func (e OAuth2AccountValidationError) Error() string
- func (e OAuth2AccountValidationError) ErrorName() string
- func (e OAuth2AccountValidationError) Field() string
- func (e OAuth2AccountValidationError) Key() bool
- func (e OAuth2AccountValidationError) Reason() string
- type OAuth2Provider
- func (*OAuth2Provider) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2Provider) GetHomepage() string
- func (x *OAuth2Provider) GetIcon() string
- func (x *OAuth2Provider) GetLabel() string
- func (x *OAuth2Provider) GetName() string
- func (*OAuth2Provider) ProtoMessage()
- func (x *OAuth2Provider) ProtoReflect() protoreflect.Message
- func (x *OAuth2Provider) Reset()
- func (x *OAuth2Provider) String() string
- func (m *OAuth2Provider) Validate() error
- func (m *OAuth2Provider) ValidateAll() error
- type OAuth2ProviderMultiError
- type OAuth2ProviderValidationError
- func (e OAuth2ProviderValidationError) Cause() error
- func (e OAuth2ProviderValidationError) Error() string
- func (e OAuth2ProviderValidationError) ErrorName() string
- func (e OAuth2ProviderValidationError) Field() string
- func (e OAuth2ProviderValidationError) Key() bool
- func (e OAuth2ProviderValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_resources_accounts_accounts_proto protoreflect.FileDescriptor
var File_resources_accounts_oauth2_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` License string `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"` // contains filtered or unexported fields }
func ConvertFromAcc ¶
func ConvertFromAcc(a *model.FivenetAccounts) *Account
func (*Account) Descriptor
deprecated
func (*Account) GetCreatedAt ¶
func (*Account) GetLicense ¶
func (*Account) GetUpdatedAt ¶
func (*Account) GetUsername ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) Validate ¶
Validate checks the field values on Account 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 (*Account) ValidateAll ¶
ValidateAll checks the field values on Account 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 AccountMultiError, or nil if none found.
type AccountMultiError ¶
type AccountMultiError []error
AccountMultiError is an error wrapping multiple validation errors returned by Account.ValidateAll() if the designated constraints aren't met.
func (AccountMultiError) AllErrors ¶
func (m AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountMultiError) Error ¶
func (m AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type Character ¶
type Character struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Char *users.User `protobuf:"bytes,3,opt,name=char,proto3" json:"char,omitempty"` // contains filtered or unexported fields }
func (*Character) Descriptor
deprecated
func (*Character) GetAvailable ¶
func (*Character) ProtoMessage ¶
func (*Character) ProtoMessage()
func (*Character) ProtoReflect ¶
func (x *Character) ProtoReflect() protoreflect.Message
func (*Character) Validate ¶
Validate checks the field values on Character 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 (*Character) ValidateAll ¶
ValidateAll checks the field values on Character 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 CharacterMultiError, or nil if none found.
type CharacterMultiError ¶
type CharacterMultiError []error
CharacterMultiError is an error wrapping multiple validation errors returned by Character.ValidateAll() if the designated constraints aren't met.
func (CharacterMultiError) AllErrors ¶
func (m CharacterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CharacterMultiError) Error ¶
func (m CharacterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CharacterValidationError ¶
type CharacterValidationError struct {
// contains filtered or unexported fields
}
CharacterValidationError is the validation error returned by Character.Validate if the designated constraints aren't met.
func (CharacterValidationError) Cause ¶
func (e CharacterValidationError) Cause() error
Cause function returns cause value.
func (CharacterValidationError) Error ¶
func (e CharacterValidationError) Error() string
Error satisfies the builtin error interface
func (CharacterValidationError) ErrorName ¶
func (e CharacterValidationError) ErrorName() string
ErrorName returns error name.
func (CharacterValidationError) Field ¶
func (e CharacterValidationError) Field() string
Field function returns field value.
func (CharacterValidationError) Key ¶
func (e CharacterValidationError) Key() bool
Key function returns key value.
func (CharacterValidationError) Reason ¶
func (e CharacterValidationError) Reason() string
Reason function returns reason value.
type OAuth2Account ¶
type OAuth2Account struct { AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` ProviderName string `protobuf:"bytes,3,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` Provider *OAuth2Provider `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` ExternalId uint64 `protobuf:"varint,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*OAuth2Account) Descriptor
deprecated
func (*OAuth2Account) Descriptor() ([]byte, []int)
Deprecated: Use OAuth2Account.ProtoReflect.Descriptor instead.
func (*OAuth2Account) GetAccountId ¶
func (x *OAuth2Account) GetAccountId() uint64
func (*OAuth2Account) GetAvatar ¶
func (x *OAuth2Account) GetAvatar() string
func (*OAuth2Account) GetCreatedAt ¶
func (x *OAuth2Account) GetCreatedAt() *timestamp.Timestamp
func (*OAuth2Account) GetExternalId ¶
func (x *OAuth2Account) GetExternalId() uint64
func (*OAuth2Account) GetProvider ¶
func (x *OAuth2Account) GetProvider() *OAuth2Provider
func (*OAuth2Account) GetProviderName ¶
func (x *OAuth2Account) GetProviderName() string
func (*OAuth2Account) GetUsername ¶
func (x *OAuth2Account) GetUsername() string
func (*OAuth2Account) ProtoMessage ¶
func (*OAuth2Account) ProtoMessage()
func (*OAuth2Account) ProtoReflect ¶
func (x *OAuth2Account) ProtoReflect() protoreflect.Message
func (*OAuth2Account) Reset ¶
func (x *OAuth2Account) Reset()
func (*OAuth2Account) String ¶
func (x *OAuth2Account) String() string
func (*OAuth2Account) Validate ¶
func (m *OAuth2Account) Validate() error
Validate checks the field values on OAuth2Account 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 (*OAuth2Account) ValidateAll ¶
func (m *OAuth2Account) ValidateAll() error
ValidateAll checks the field values on OAuth2Account 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 OAuth2AccountMultiError, or nil if none found.
type OAuth2AccountMultiError ¶
type OAuth2AccountMultiError []error
OAuth2AccountMultiError is an error wrapping multiple validation errors returned by OAuth2Account.ValidateAll() if the designated constraints aren't met.
func (OAuth2AccountMultiError) AllErrors ¶
func (m OAuth2AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OAuth2AccountMultiError) Error ¶
func (m OAuth2AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OAuth2AccountValidationError ¶
type OAuth2AccountValidationError struct {
// contains filtered or unexported fields
}
OAuth2AccountValidationError is the validation error returned by OAuth2Account.Validate if the designated constraints aren't met.
func (OAuth2AccountValidationError) Cause ¶
func (e OAuth2AccountValidationError) Cause() error
Cause function returns cause value.
func (OAuth2AccountValidationError) Error ¶
func (e OAuth2AccountValidationError) Error() string
Error satisfies the builtin error interface
func (OAuth2AccountValidationError) ErrorName ¶
func (e OAuth2AccountValidationError) ErrorName() string
ErrorName returns error name.
func (OAuth2AccountValidationError) Field ¶
func (e OAuth2AccountValidationError) Field() string
Field function returns field value.
func (OAuth2AccountValidationError) Key ¶
func (e OAuth2AccountValidationError) Key() bool
Key function returns key value.
func (OAuth2AccountValidationError) Reason ¶
func (e OAuth2AccountValidationError) Reason() string
Reason function returns reason value.
type OAuth2Provider ¶
type OAuth2Provider struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Homepage string `protobuf:"bytes,3,opt,name=homepage,proto3" json:"homepage,omitempty"` Icon *string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*OAuth2Provider) Descriptor
deprecated
func (*OAuth2Provider) Descriptor() ([]byte, []int)
Deprecated: Use OAuth2Provider.ProtoReflect.Descriptor instead.
func (*OAuth2Provider) GetHomepage ¶
func (x *OAuth2Provider) GetHomepage() string
func (*OAuth2Provider) GetIcon ¶ added in v0.9.2
func (x *OAuth2Provider) GetIcon() string
func (*OAuth2Provider) GetLabel ¶
func (x *OAuth2Provider) GetLabel() string
func (*OAuth2Provider) GetName ¶
func (x *OAuth2Provider) GetName() string
func (*OAuth2Provider) ProtoMessage ¶
func (*OAuth2Provider) ProtoMessage()
func (*OAuth2Provider) ProtoReflect ¶
func (x *OAuth2Provider) ProtoReflect() protoreflect.Message
func (*OAuth2Provider) Reset ¶
func (x *OAuth2Provider) Reset()
func (*OAuth2Provider) String ¶
func (x *OAuth2Provider) String() string
func (*OAuth2Provider) Validate ¶
func (m *OAuth2Provider) Validate() error
Validate checks the field values on OAuth2Provider 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 (*OAuth2Provider) ValidateAll ¶
func (m *OAuth2Provider) ValidateAll() error
ValidateAll checks the field values on OAuth2Provider 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 OAuth2ProviderMultiError, or nil if none found.
type OAuth2ProviderMultiError ¶
type OAuth2ProviderMultiError []error
OAuth2ProviderMultiError is an error wrapping multiple validation errors returned by OAuth2Provider.ValidateAll() if the designated constraints aren't met.
func (OAuth2ProviderMultiError) AllErrors ¶
func (m OAuth2ProviderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OAuth2ProviderMultiError) Error ¶
func (m OAuth2ProviderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OAuth2ProviderValidationError ¶
type OAuth2ProviderValidationError struct {
// contains filtered or unexported fields
}
OAuth2ProviderValidationError is the validation error returned by OAuth2Provider.Validate if the designated constraints aren't met.
func (OAuth2ProviderValidationError) Cause ¶
func (e OAuth2ProviderValidationError) Cause() error
Cause function returns cause value.
func (OAuth2ProviderValidationError) Error ¶
func (e OAuth2ProviderValidationError) Error() string
Error satisfies the builtin error interface
func (OAuth2ProviderValidationError) ErrorName ¶
func (e OAuth2ProviderValidationError) ErrorName() string
ErrorName returns error name.
func (OAuth2ProviderValidationError) Field ¶
func (e OAuth2ProviderValidationError) Field() string
Field function returns field value.
func (OAuth2ProviderValidationError) Key ¶
func (e OAuth2ProviderValidationError) Key() bool
Key function returns key value.
func (OAuth2ProviderValidationError) Reason ¶
func (e OAuth2ProviderValidationError) Reason() string
Reason function returns reason value.