Versions in this module Expand all Collapse all v0 v0.21.1 Jul 8, 2022 v0.21.0 May 20, 2022 Changes in this version type OAuthConfig + IsTrusted bool v0.20.0 Feb 12, 2022 Changes in this version + type BillingLastPayment struct + Amount float64 + Currency string + Date string + type BillingPaymentInformation struct + CardType string + ExpiryDate string + LastFourDigits string + PaymentMethod string + type BillingState struct + PlanID string + Status enum.BillingStatus + SubscriptionEndsAt *time.Time + SubscriptionID string + TrialEndsAt *time.Time + type BillingSubscription struct + CancelURL string + LastPayment BillingLastPayment + PaymentInformation BillingPaymentInformation + UpdateURL string + type HttpHeaders map[string]string + func (h *HttpHeaders) Scan(src interface{}) error + func (h HttpHeaders) Value() (driver.Value, error) type OriginalPost + func (i *OriginalPost) Url(baseURL string) string type Post + func (i *Post) Url(baseURL string) string type Tenant + func (t *Tenant) IsDisabled() bool + type TenantContact struct + Email string + Name string + Subdomain string + type Webhook struct + Content string + HttpHeaders HttpHeaders + HttpMethod string + ID int + Name string + Status enum.WebhookStatus + Type enum.WebhookType + Url string v0.19.1 Aug 25, 2021 v0.19.0 Aug 14, 2021 Changes in this version + func GenerateEmailVerificationKey() string + type Comment struct + Attachments []string + Content string + CreatedAt time.Time + EditedAt *time.Time + EditedBy *User + ID int + User *User + type EmailVerification struct + CreatedAt time.Time + Email string + ExpiresAt time.Time + Key string + Kind enum.EmailVerificationKind + Name string + UserID int + VerifiedAt *time.Time + type Notification struct + CreatedAt time.Time + ID int + Link string + Read bool + Title string + type OAuthConfig struct + AuthorizeURL string + ClientID string + ClientSecret string + DisplayName string + ID int + JSONUserEmailPath string + JSONUserIDPath string + JSONUserNamePath string + LogoBlobKey string + ProfileURL string + Provider string + Scope string + Status int + TokenURL string + func (o OAuthConfig) MarshalJSON() ([]byte, error) + type OriginalPost struct + Number int + Slug string + Status enum.PostStatus + Title string + type Post struct + CommentsCount int + CreatedAt time.Time + Description string + HasVoted bool + ID int + Number int + Response *PostResponse + Slug string + Status enum.PostStatus + Tags []string + Title string + User *User + VotesCount int + func (i *Post) CanBeVoted() bool + type PostResponse struct + Original *OriginalPost + RespondedAt time.Time + Text string + User *User + type Tag struct + Color string + ID int + IsPublic bool + Name string + Slug string + type Tenant struct + CNAME string + CustomCSS string + ID int + Invitation string + IsEmailAuthAllowed bool + IsPrivate bool + Locale string + LogoBlobKey string + Name string + Status int + Subdomain string + WelcomeMessage string + type User struct + AvatarBlobKey string + AvatarType enum.AvatarType + AvatarURL string + Email string + ID int + Name string + Providers []*UserProvider + Role enum.Role + Status enum.UserStatus + Tenant *Tenant + func (u *User) HasProvider(provider string) bool + func (u *User) IsAdministrator() bool + func (u *User) IsCollaborator() bool + type UserProvider struct + Name string + UID string + type Vote struct + CreatedAt time.Time + User *VoteUser + type VoteUser struct + AvatarURL string + Email string + ID int + Name string