Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FediAccount ¶
type FediAccount struct { ID int64 `validate:"-" bun:"id,pk,autoincrement"` CreatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` InstanceID int64 `validate:"-" bun:",unique:unique_fedi_user,notnull,nullzero"` Instance *FediInstance `validate:"-" bun:"rel:belongs-to,join:instance_id=id"` InstanceUserID string `validate:"-" bun:",unique:unique_fedi_user,nullzero"` Username string `validate:"-" bun:",nullzero,notnull"` DisplayName string `validate:"-" bun:",notnull"` DisplayNameUpdatedAt time.Time `validate:"-" bun:",notnull"` SignInCount int `validate:"min=0" bun:",notnull,default:0"` AccessToken []byte `validate:"-" bun:",nullzero"` }
FediAccount represents a federated social account.
type FediInstance ¶
type FediInstance struct { ID int64 `validate:"-" bun:"id,pk,autoincrement"` CreatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` Domain string `validate:"-" bun:",nullzero,notnull,unique"` ServerHostname string `validate:"-" bun:",nullzero,notnull,unique"` Software string `validate:"-" bun:",nullzero,notnull"` ClientID string `validate:"-" bun:",nullzero"` ClientSecret []byte `validate:"-" bun:",nullzero"` }
FediInstance represents a federated social instance.
Click to show internal directories.
Click to hide internal directories.