Versions in this module Expand all Collapse all v0 v0.8.1 Apr 25, 2026 v0.8.0 Apr 25, 2026 Changes in this version + const ContentTypeHTML + const ContentTypeText + const MaxJobAttempts + const PasswordMaxLen + const PasswordMinLen + const UsernameMaxLen + const UsernameMinLen + var Commit = "unknown" + var Version = "dev" + func MustJSON(v any) string + func ValidatePassword(s string) error + func ValidateUsername(s string) error + func VersionString() string + type APIToken struct + AppID id.ID + CreatedAt time.Time + ExpiresAt time.Time + ID id.ID + Name string + Scopes string + TokenHash string + type Attachment struct + Alt string + CreatedAt time.Time + FilePath string + Height int + ID id.ID + MimeType string + PostID id.ID + Size int64 + Width int + type Block struct + ActorURI string + CreatedAt time.Time + ID id.ID + type CustomField struct + Name string + Value string + type DomainBlock struct + CreatedAt time.Time + Domain string + ID id.ID + type DomainFailure struct + Domain string + FailureCount int + FirstFailureAt time.Time + LastError string + LastFailureAt time.Time + type Favourite struct + ActorURI string + CreatedAt time.Time + ID id.ID + PostID id.ID + type Follow struct + Accepted bool + CreatedAt time.Time + ID id.ID + PersonaID id.ID + TargetURI string + type Follower struct + ActorURI string + Approved bool + CreatedAt time.Time + ID id.ID + PersonaID id.ID + type InteractionCounts struct + Favourites int + Reblogs int + type JobStatus int + const JobDead + const JobDone + const JobFailed + const JobPending + const JobRunning + type JobType int + const JobAcceptFollow + const JobDeliverAnnounce + const JobDeliverDelete + const JobDeliverDeleteNote + const JobDeliverNote + const JobDeliverPost + const JobDeliverUpdate + const JobDeliverUpdateNote + const JobFetchRemoteActor + const JobRejectFollow + const JobSendAnnounce + const JobSendBlock + const JobSendFollow + const JobSendLike + const JobSendUndoAnnounce + const JobSendUndoBlock + const JobSendUndoFollow + const JobSendUndoLike + const JobUpdateActor + const JobUpdatePost + func (t JobType) String() string + type Mention struct + Acct string + Href string + type Notification struct + ActorURI string + CreatedAt time.Time + ID id.ID + PersonaID id.ID + PostID id.ID + Read bool + Type string + type OAuthApp struct + ClientID string + ClientSecret string + CreatedAt time.Time + ID id.ID + Name string + RedirectURI string + Scopes string + type OAuthCode struct + AppID id.ID + Code string + CodeChallenge string + CreatedAt time.Time + ExpiresAt time.Time + ID id.ID + RedirectURI string + Scopes string + type Persona struct + AvatarPath string + CreatedAt time.Time + Discoverable bool + DisplayName string + FieldsJSON string + FollowersCount int + FollowingCount int + HeaderPath string + ID id.ID + Locked bool + PinnedPostID id.ID + PostCount int + Primary bool + PrivateKeyPEM string + PublicKeyPEM string + ShowFollows bool + Summary string + UpdatedAt time.Time + Username string + func (p *Persona) Fields() []CustomField + func (p *Persona) SetFields(fields []CustomField) + type Post struct + ActorURI string + Content string + ContentMap map[string]string + ContentType string + CreatedAt time.Time + HashtagsJSON string + ID id.ID + InReplyToURI string + MentionsJSON string + Origin string + PersonaID id.ID + ReblogOfPostID id.ID + RebloggedByURI string + Sensitive bool + Summary string + URI string + UpdatedAt time.Time + Visibility Visibility + func (p *Post) Hashtags() []string + func (p *Post) Mentions() []Mention + func (p *Post) SetHashtags(tags []string) + func (p *Post) SetMentions(mentions []Mention) + type QueueJob struct + Attempts int + CompletedAt time.Time + CreatedAt time.Time + ID id.ID + LastError string + NextRunAt time.Time + Payload string + Status JobStatus + Type JobType + func NewJob(jobType JobType, payload any) *QueueJob + type Reblog struct + ActorURI string + CreatedAt time.Time + ID id.ID + PostID id.ID + type RemoteActor struct + Acct string + AvatarURL string + DisplayName string + FeaturedURL string + FetchedAt time.Time + FieldsJSON string + HeaderURL string + Inbox string + Summary string + URI string + Username string + func (a *RemoteActor) Fields() []CustomField + type Session struct + CreatedAt time.Time + ExpiresAt time.Time + ID id.ID + TokenHash string + type Setting struct + Key string + Value string + type Visibility int + const VisibilityDirect + const VisibilityFollowers + const VisibilityPublic + const VisibilityUnlisted