Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account 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"` ActorURI string `validate:"url" bun:",nullzero,notnull"` Username string `validate:"-" bun:",unique:unique_fedi_user,nullzero,notnull"` InstanceID int64 `validate:"-" bun:",unique:unique_fedi_user,nullzero,notnull"` Instance *Instance `validate:"-" bun:"rel:belongs-to,join:instance_id=id"` DisplayName string `validate:"-" bun:",nullzero"` LastFinger time.Time `validate:"-" bun:",notnull"` LogInCount int64 `validate:"-" bun:",notnull"` LogInLast time.Time `validate:"-" bun:",nullzero"` IsAdmin bool `validate:"-" bun:",notnull"` IsMod bool `validate:"-" bun:",notnull"` }
Account represents a federated social account.
type Block ¶
type Block struct { ID int64 `validate:"-" bun:",pk,autoincrement,nullzero,notnull,unique"` CreatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` MarkedForDeletionOn time.Time `validate:"-" bun:",nullzero"` Domain string `validate:"required,fqdn" bun:",nullzero,notnull,unique"` ObfuscatedDomain string `validate:"-" bun:",nullzero"` BlockSubdomains bool `validate:"-" bun:",notnull"` }
Block represents a block of a domain
type Config ¶
type Config 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"` Key string `validate:"-" bun:",unique,nullzero,notnull"` Value string `validate:"-" bun:",nullzero"` IsEncrypted bool `validate:"-" bun:",notnull"` }
Config represents a federated social account.
type Instance ¶
type Instance struct { ID int64 `validate:"-" bun:",pk,autoincrement,nullzero,notnull,unique"` CreatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `validate:"-" bun:",nullzero,notnull,default:current_timestamp"` Domain string `validate:"required,fqdn" bun:",nullzero,notnull,unique"` ServerHostname string `validate:"required,fqdn" bun:",nullzero,notnull,unique"` Software string `validate:"-" bun:",nullzero"` PublicKey *rsa.PublicKey `validate:"-"` PrivateKey string `validate:"-" bun:",nullzero"` ActorIRI string `validate:"required,url" bun:",nullzero,notnull,unique"` InboxIRI string `validate:"required,url" bun:",nullzero,notnull,unique"` IsFollowing bool `validate:"-" bun:",notnull,default:false"` OAuthClientID string `validate:"-" bun:",nullzero"` OAuthClientSecret string `validate:"-" bun:",nullzero"` BlockID int64 `validate:"-" bun:",nullzero"` Block *Block `validate:"-" bun:"rel:belongs-to"` }
Instance represents a federated social instance
Click to show internal directories.
Click to hide internal directories.