Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
FetchedAt time.Time `bun:"type:timestamptz,nullzero"`
Username string `bun:",nullzero,notnull,unique:accounts_username_domain_uniq"`
Domain string `bun:",nullzero,unique:accounts_username_domain_uniq"`
AvatarMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
AvatarRemoteURL string `bun:",nullzero"`
HeaderMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
HeaderRemoteURL string `bun:",nullzero"`
DisplayName string `bun:",nullzero"`
EmojiIDs []string `bun:"emojis,array"`
Fields []*Field `bun:",nullzero"`
FieldsRaw []*Field `bun:",nullzero"`
Note string `bun:",nullzero"`
NoteRaw string `bun:",nullzero"`
AlsoKnownAsURIs []string `bun:"also_known_as_uris,array"`
AlsoKnownAs []*Account `bun:"-"`
MovedToURI string `bun:",nullzero"`
MovedTo *Account `bun:"-"`
MoveID string `bun:"type:CHAR(26),nullzero"`
Locked *bool `bun:",nullzero,notnull,default:true"`
Discoverable *bool `bun:",nullzero,notnull,default:false"`
URI string `bun:",nullzero,notnull,unique"`
URL string `bun:",nullzero"`
InboxURI string `bun:",nullzero"`
OutboxURI string `bun:",nullzero"`
FollowingURI string `bun:",nullzero"`
FollowersURI string `bun:",nullzero"`
FeaturedCollectionURI string `bun:",nullzero"`
ActorType int16 `bun:",nullzero,notnull"`
PrivateKey *rsa.PrivateKey `bun:""`
PublicKey *rsa.PublicKey `bun:",notnull"`
PublicKeyURI string `bun:",nullzero,notnull,unique"`
PublicKeyExpiresAt time.Time `bun:"type:timestamptz,nullzero"`
MemorializedAt time.Time `bun:"type:timestamptz,nullzero"`
SensitizedAt time.Time `bun:"type:timestamptz,nullzero"`
SilencedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspendedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspensionOrigin string `bun:"type:CHAR(26),nullzero"`
// Added in this migration:
HidesToPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:false"`
HidesCcPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:true"`
}
type AccountSettings ¶
type AccountSettings struct {
AccountID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
Privacy common.Visibility `bun:",nullzero,default:3"`
Sensitive *bool `bun:",nullzero,notnull,default:false"`
Language string `bun:",nullzero,notnull,default:'en'"`
StatusContentType string `bun:",nullzero"`
Theme string `bun:",nullzero"`
CustomCSS string `bun:",nullzero"`
EnableRSS *bool `bun:",nullzero,notnull,default:false"`
HideCollections *bool `bun:",nullzero,notnull,default:false"`
WebLayout int16 `bun:",nullzero,notnull,default:1"`
InteractionPolicyDirect *struct{} `bun:""`
InteractionPolicyMutualsOnly *struct{} `bun:""`
InteractionPolicyFollowersOnly *struct{} `bun:""`
InteractionPolicyUnlocked *struct{} `bun:""`
InteractionPolicyPublic *struct{} `bun:""`
}
Click to show internal directories.
Click to hide internal directories.