Documentation
¶
Index ¶
- type CountPostPerStatus
- type CountUnreadNotifications
- type CountUsers
- type CreateEditWebhook
- type DeleteWebhook
- type FetchRecentSupressions
- type FindSimilarPosts
- type GetActiveNotifications
- type GetActiveSubscribers
- type GetAllPosts
- type GetAllTags
- type GetAllUsers
- type GetAllUsersNames
- type GetAssignedTags
- type GetAttachments
- type GetBillingSubscription
- type GetBlobByKey
- type GetCommentByID
- type GetCommentsByPost
- type GetCurrentUserSettings
- type GetCustomOAuthConfigByProvider
- type GetFirstTenant
- type GetMentionNotifications
- type GetModerationCount
- type GetModerationItems
- type GetNotificationByID
- type GetOAuthAuthorizationURL
- type GetOAuthProfile
- type GetOAuthRawProfile
- type GetPendingSignUpVerification
- type GetPostByID
- type GetPostByNumber
- type GetPostBySlug
- type GetStripeBillingState
- type GetSystemSettings
- type GetTagBySlug
- type GetTenantByDomain
- type GetTenantProviderStatus
- type GetUserByAPIKey
- type GetUserByEmail
- type GetUserByID
- type GetUserByProvider
- type GetVerificationByEmailAndCode
- type GetVerificationByKey
- type GetWebhook
- type IsCNAMEAvailable
- type IsSubdomainAvailable
- type ListActiveOAuthProviders
- type ListActiveWebhooksByType
- type ListAllOAuthProviders
- type ListAllWebhooks
- type ListAllWebhooksByType
- type ListBlobs
- type ListCustomOAuthConfig
- type ListPostVotes
- type MarkWebhookAsFailed
- type ModerationItem
- type PostIsReferenced
- type SearchPosts
- type SearchUsers
- type UserSubscribedTo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountPostPerStatus ¶
type CountPostPerStatus struct {
Result map[enum.PostStatus]int
}
type CountUnreadNotifications ¶
type CountUnreadNotifications struct {
Result int
}
type CountUsers ¶
type CountUsers struct {
Result int
}
type CreateEditWebhook ¶ added in v0.20.0
type CreateEditWebhook struct {
ID int
Name string
Type enum.WebhookType
Status enum.WebhookStatus
Url string
Content string
HttpMethod string
HttpHeaders entity.HttpHeaders
Result int
}
type DeleteWebhook ¶ added in v0.20.0
type DeleteWebhook struct {
ID int
}
type FetchRecentSupressions ¶ added in v0.20.0
type FindSimilarPosts ¶ added in v0.28.0
type GetActiveNotifications ¶
type GetActiveNotifications struct {
Result []*entity.Notification
}
type GetActiveSubscribers ¶
type GetActiveSubscribers struct {
Number int
Channel enum.NotificationChannel
Event enum.NotificationEvent
Result []*entity.User
}
type GetAllPosts ¶
type GetAllTags ¶
type GetAllUsers ¶
type GetAllUsersNames ¶ added in v0.25.0
type GetAttachments ¶
type GetBillingSubscription ¶ added in v0.20.0
type GetBillingSubscription struct {
SubscriptionID string
// Output
Result *entity.BillingSubscription
}
type GetBlobByKey ¶
type GetCommentByID ¶
type GetCommentsByPost ¶
type GetCurrentUserSettings ¶
type GetCustomOAuthConfigByProvider ¶
type GetCustomOAuthConfigByProvider struct {
Provider string
Result *entity.OAuthConfig
}
type GetFirstTenant ¶
type GetMentionNotifications ¶ added in v0.25.0
type GetMentionNotifications struct {
CommentID int
PostID int
Result []*entity.MentionNotification
}
type GetModerationCount ¶ added in v0.33.0
type GetModerationCount struct {
Result int
}
type GetModerationItems ¶ added in v0.33.0
type GetModerationItems struct {
Result []*ModerationItem
}
type GetNotificationByID ¶
type GetNotificationByID struct {
ID int
Result *entity.Notification
}
type GetOAuthProfile ¶
type GetOAuthProfile struct {
Provider string
Code string
Result *dto.OAuthUserProfile
}
type GetOAuthRawProfile ¶
type GetPendingSignUpVerification ¶ added in v0.31.0
type GetPendingSignUpVerification struct {
// Output
Result *entity.EmailVerification
}
type GetPostByID ¶
type GetPostByNumber ¶
type GetPostBySlug ¶
type GetStripeBillingState ¶ added in v0.33.0
type GetStripeBillingState struct {
// Output
Result *entity.StripeBillingState
}
type GetSystemSettings ¶ added in v0.20.0
type GetTagBySlug ¶
type GetTenantByDomain ¶
type GetTenantProviderStatus ¶ added in v0.30.0
type GetTenantProviderStatus struct {
Provider string
Result *entity.TenantProvider
}
type GetUserByAPIKey ¶
type GetUserByEmail ¶
type GetUserByID ¶
type GetUserByProvider ¶
type GetVerificationByEmailAndCode ¶ added in v0.31.0
type GetVerificationByEmailAndCode struct {
Email string
Code string
Kind enum.EmailVerificationKind
// Output
Result *entity.EmailVerification
}
type GetVerificationByKey ¶
type GetVerificationByKey struct {
Kind enum.EmailVerificationKind
Key string
// Output
Result *entity.EmailVerification
}
type GetWebhook ¶ added in v0.20.0
type IsCNAMEAvailable ¶
type IsSubdomainAvailable ¶
type ListActiveOAuthProviders ¶
type ListActiveOAuthProviders struct {
Result []*dto.OAuthProviderOption
}
type ListActiveWebhooksByType ¶ added in v0.20.0
type ListActiveWebhooksByType struct {
Type enum.WebhookType
Result []*entity.Webhook
}
type ListAllOAuthProviders ¶
type ListAllOAuthProviders struct {
Result []*dto.OAuthProviderOption
}
type ListAllWebhooks ¶ added in v0.20.0
type ListAllWebhooksByType ¶ added in v0.20.0
type ListCustomOAuthConfig ¶
type ListCustomOAuthConfig struct {
Result []*entity.OAuthConfig
}
type ListPostVotes ¶
type MarkWebhookAsFailed ¶ added in v0.20.0
type MarkWebhookAsFailed struct {
ID int
}
type ModerationItem ¶ added in v0.33.0
type ModerationItem struct {
Type string `json:"type"` // "post" or "comment"
ID int `json:"id"`
PostID int `json:"postId,omitempty"`
PostNumber int `json:"postNumber,omitempty"`
PostSlug string `json:"postSlug,omitempty"`
Title string `json:"title,omitempty"`
Content string `json:"content"`
User *entity.UserWithEmail `json:"user"`
CreatedAt time.Time `json:"createdAt"`
PostTitle string `json:"postTitle,omitempty"`
}
type PostIsReferenced ¶
type SearchPosts ¶
type SearchPosts struct {
Query string
View string
Limit string
Statuses []enum.PostStatus
Tags []string
MyVotesOnly bool
NoTagsOnly bool
MyPostsOnly bool
ModerationFilter string // "pending", "approved", or empty (all)
Result []*entity.Post
}
func (*SearchPosts) SetStatusesFromStrings ¶ added in v0.25.0
func (q *SearchPosts) SetStatusesFromStrings(statuses []string)
type SearchUsers ¶ added in v0.33.0
type UserSubscribedTo ¶
Click to show internal directories.
Click to hide internal directories.