Documentation
¶
Index ¶
- Variables
- func ValidateHandle(ctx context.Context, handle string) error
- type Account
- type AccountID
- type AccountKind
- type AccountWithEdges
- type Accounts
- type EmailAddress
- type ExternalLink
- type Lookup
- type VerifiedStatus
- func (r VerifiedStatus) Format(f fmt.State, verb rune)
- func (r VerifiedStatus) MarshalText() ([]byte, error)
- func (r *VerifiedStatus) Scan(__iNpUt__ any) error
- func (r VerifiedStatus) String() string
- func (r *VerifiedStatus) UnmarshalText(__iNpUt__ []byte) error
- func (r VerifiedStatus) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountKindHuman = AccountKind{accountKindHuman} AccountKindBot = AccountKind{accountKindBot} )
View Source
var ( VerifiedStatusNone = VerifiedStatus{verifiedStatusNone} VerifiedStatusVerifiedEmail = VerifiedStatus{verifiedStatusVerifiedEmail} VerifiedStatusManual = VerifiedStatus{verifiedStatusManual} )
Functions ¶
Types ¶
type Account ¶
type Account struct {
ID AccountID
CreatedAt time.Time
UpdatedAt time.Time
Handle string
Name string
Bio datagraph.Content
Signature opt.Optional[datagraph.Content]
Kind AccountKind
VerifiedStatus VerifiedStatus
Roles held.Roles
Admin bool
Metadata map[string]any
DeletedAt opt.Optional[time.Time]
IndexedAt opt.Optional[time.Time]
}
func (*Account) IsSuspended ¶
func (*Account) RejectSuspended ¶
type AccountID ¶
type AccountID = account_ref.ID
type AccountKind ¶
type AccountKind struct {
// contains filtered or unexported fields
}
func NewAccountKind ¶
func NewAccountKind(__iNpUt__ string) (AccountKind, error)
func (AccountKind) MarshalText ¶
func (r AccountKind) MarshalText() ([]byte, error)
func (*AccountKind) Scan ¶
func (r *AccountKind) Scan(__iNpUt__ any) error
func (AccountKind) String ¶
func (r AccountKind) String() string
func (*AccountKind) UnmarshalText ¶
func (r *AccountKind) UnmarshalText(__iNpUt__ []byte) error
type AccountWithEdges ¶
type AccountWithEdges struct {
Account
Auths []string
EmailAddresses []*EmailAddress
InvitedBy opt.Optional[Account]
ExternalLinks []ExternalLink
}
func MapAccount ¶
func MapAccount(a *ent.Account) (*AccountWithEdges, error)
type EmailAddress ¶
func MapEmail ¶
func MapEmail(in *ent.Email) *EmailAddress
type ExternalLink ¶
func MapExternalLink ¶
func MapExternalLink(e schema.ExternalLink) (ExternalLink, error)
type Lookup ¶
func NewAccountLookup ¶
type VerifiedStatus ¶
type VerifiedStatus struct {
// contains filtered or unexported fields
}
func NewVerifiedStatus ¶
func NewVerifiedStatus(__iNpUt__ string) (VerifiedStatus, error)
func (VerifiedStatus) MarshalText ¶
func (r VerifiedStatus) MarshalText() ([]byte, error)
func (*VerifiedStatus) Scan ¶
func (r *VerifiedStatus) Scan(__iNpUt__ any) error
func (VerifiedStatus) String ¶
func (r VerifiedStatus) String() string
func (*VerifiedStatus) UnmarshalText ¶
func (r *VerifiedStatus) UnmarshalText(__iNpUt__ []byte) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.