accounts

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resources_accounts_accounts_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCreatedAt

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

func (*Account) GetId

func (x *Account) GetId() uint64

func (*Account) GetLicense

func (x *Account) GetLicense() string

func (*Account) GetUpdatedAt

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

func (*Account) GetUsername

func (x *Account) GetUsername() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (m *Account) Validate() error

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

func (m *Account) ValidateAll() error

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

Deprecated: Use Character.ProtoReflect.Descriptor instead.

func (*Character) GetAvailable

func (x *Character) GetAvailable() bool

func (*Character) GetChar

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

func (*Character) GetGroup

func (x *Character) GetGroup() string

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) ProtoReflect

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

func (*Character) Reset

func (x *Character) Reset()

func (*Character) String

func (x *Character) String() string

func (*Character) Validate

func (m *Character) Validate() error

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

func (m *Character) ValidateAll() error

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

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

Cause function returns cause value.

func (OAuth2AccountValidationError) Error

Error satisfies the builtin error interface

func (OAuth2AccountValidationError) ErrorName

func (e OAuth2AccountValidationError) ErrorName() string

ErrorName returns error name.

func (OAuth2AccountValidationError) Field

Field function returns field value.

func (OAuth2AccountValidationError) Key

Key function returns key value.

func (OAuth2AccountValidationError) Reason

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

Cause function returns cause value.

func (OAuth2ProviderValidationError) Error

Error satisfies the builtin error interface

func (OAuth2ProviderValidationError) ErrorName

func (e OAuth2ProviderValidationError) ErrorName() string

ErrorName returns error name.

func (OAuth2ProviderValidationError) Field

Field function returns field value.

func (OAuth2ProviderValidationError) Key

Key function returns key value.

func (OAuth2ProviderValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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