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 GetBillingState
- type GetBillingSubscription
- type GetBlobByKey
- type GetCommentByID
- type GetCommentsByPost
- type GetCurrentUserSettings
- type GetCustomOAuthConfigByProvider
- type GetFirstTenant
- type GetMentionNotifications
- type GetNotificationByID
- type GetOAuthAuthorizationURL
- type GetOAuthProfile
- type GetOAuthRawProfile
- type GetPendingSignUpVerification
- type GetPostByID
- type GetPostByNumber
- type GetPostBySlug
- type GetSystemSettings
- type GetTagBySlug
- type GetTenantByDomain
- type GetTenantProviderStatus
- type GetTrialingTenantContacts
- 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 PostIsReferenced
- type SearchPosts
- 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 GetBillingState ¶ added in v0.20.0
type GetBillingState struct {
// Output
Result *entity.BillingState
}
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 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 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 GetTrialingTenantContacts ¶ added in v0.20.0
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 PostIsReferenced ¶
type SearchPosts ¶
type SearchPosts struct {
Query string
View string
Limit string
Statuses []enum.PostStatus
Tags []string
MyVotesOnly bool
NoTagsOnly bool
MyPostsOnly bool
Result []*entity.Post
}
func (*SearchPosts) SetStatusesFromStrings ¶ added in v0.25.0
func (q *SearchPosts) SetStatusesFromStrings(statuses []string)
type UserSubscribedTo ¶
Click to show internal directories.
Click to hide internal directories.