Documentation
¶
Index ¶
- type ActivateBillingSubscription
- type ActivateStripeSubscription
- type ActivateTenant
- type AddMentionNotification
- type AddNewComment
- type AddNewNotification
- type AddNewPost
- type AddNewTag
- type AddSubscriber
- type AddVote
- type ApproveComment
- type ApprovePost
- type AssignTag
- type BlockUser
- type BulkApproveItems
- type BulkDeclineItems
- type CancelBillingSubscription
- type CancelStripeSubscription
- type CancelTenantDeletion
- type ChangeUserEmail
- type ChangeUserRole
- type CreateTenant
- type DeclineComment
- type DeclinePost
- type DeleteBlob
- type DeleteComment
- type DeleteCurrentUser
- type DeleteTag
- type DeleteTenant
- type GetWebhookProps
- type HTTPRequest
- type IncrementVerificationAttempts
- type InvalidatePreviousSignUpKeys
- type InvalidateVerificationsByEmail
- type LogDebug
- type LogError
- type LogInfo
- type LogWarn
- type MarkAllNotificationsAsRead
- type MarkNotificationAsRead
- type MarkPostAsDuplicate
- type NewEmailVerification
- type ParseOAuthRawProfile
- type PreviewWebhook
- type PurgeExpiredNotifications
- type RegenerateAPIKey
- type RegisterUser
- type RegisterUserProvider
- type RemoveSubscriber
- type RemoveVote
- type RotateAllUserSecurityStamps
- type SaveCustomOAuthConfig
- type SaveVerificationKey
- type ScheduleTenantDeletion
- type SendMail
- type SetAttachments
- type SetKeyAsVerified
- type SetPostResponse
- type SetSystemSettings
- type SetTenantProviderStatus
- type StoreBlob
- type StoreEvent
- type SupressEmail
- type TestWebhook
- type ToggleCommentReaction
- type TriggerWebhooks
- type TrustUser
- type UnassignTag
- type UnblockUser
- type UntrustUser
- type UpdateComment
- type UpdateCurrentUser
- type UpdateCurrentUserSettings
- type UpdatePost
- type UpdateTag
- type UpdateTenantAdvancedSettings
- type UpdateTenantEmailAuthAllowedSettings
- type UpdateTenantPrivacySettings
- type UpdateTenantSettings
- type UploadImage
- type UploadImages
- type UserListCreateCompany
- type UserListHandleRoleChange
- type UserListUpdateCompany
- type UserListUpdateUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateBillingSubscription ¶ added in v0.20.0
type ActivateBillingSubscription struct {
TenantID int
}
type ActivateStripeSubscription ¶ added in v0.33.0
type ActivateTenant ¶
type ActivateTenant struct {
TenantID int
}
type AddMentionNotification ¶ added in v0.25.0
type AddNewComment ¶
type AddNewNotification ¶
type ApproveComment ¶ added in v0.33.0
type ApproveComment struct {
CommentID int
}
type ApprovePost ¶ added in v0.33.0
type ApprovePost struct {
PostID int
}
type BulkApproveItems ¶ added in v0.33.0
type BulkDeclineItems ¶ added in v0.33.0
type CancelBillingSubscription ¶ added in v0.20.0
type CancelBillingSubscription struct {
TenantID int
}
type CancelStripeSubscription ¶ added in v0.33.0
type CancelStripeSubscription struct {
TenantID int
}
type CancelTenantDeletion ¶ added in v0.36.0
type CancelTenantDeletion struct {
TenantID int
}
CancelTenantDeletion clears a pending deletion schedule, leaving the tenant untouched.
type ChangeUserEmail ¶
type ChangeUserRole ¶
type CreateTenant ¶
type DeclineComment ¶ added in v0.33.0
type DeclineComment struct {
CommentID int
}
type DeclinePost ¶ added in v0.33.0
type DeclinePost struct {
PostID int
}
type DeleteBlob ¶
type DeleteBlob struct {
Key string
}
type DeleteComment ¶
type DeleteComment struct {
CommentID int
}
type DeleteCurrentUser ¶
type DeleteCurrentUser struct {
}
type DeleteTenant ¶ added in v0.36.0
type DeleteTenant struct {
TenantID int
}
DeleteTenant permanently removes a tenant and all of its data. Irreversible.
type GetWebhookProps ¶ added in v0.20.0
type GetWebhookProps struct {
Type enum.WebhookType
Result webhook.Props
}
type HTTPRequest ¶
type IncrementVerificationAttempts ¶ added in v0.35.0
type IncrementVerificationAttempts struct {
Key string
}
type InvalidatePreviousSignUpKeys ¶ added in v0.31.0
type InvalidatePreviousSignUpKeys struct {
}
type InvalidateVerificationsByEmail ¶ added in v0.35.0
type InvalidateVerificationsByEmail struct {
Email string
Kind enum.EmailVerificationKind
}
type MarkAllNotificationsAsRead ¶
type MarkAllNotificationsAsRead struct{}
type MarkNotificationAsRead ¶
type MarkNotificationAsRead struct {
ID int
}
type MarkPostAsDuplicate ¶
type NewEmailVerification ¶ added in v0.19.0
type NewEmailVerification interface {
GetEmail() string
GetName() string
GetUser() *entity.User
GetKind() enum.EmailVerificationKind
}
NewEmailVerification is used to define an email verification process
type ParseOAuthRawProfile ¶
type ParseOAuthRawProfile struct {
Provider string
Body string
Result *dto.OAuthUserProfile
}
type PreviewWebhook ¶ added in v0.20.0
type PreviewWebhook struct {
Type enum.WebhookType
Url string
Content string
Result *dto.WebhookPreviewResult
}
type PurgeExpiredNotifications ¶
type PurgeExpiredNotifications struct {
NumOfDeletedNotifications int
}
type RegenerateAPIKey ¶
type RegenerateAPIKey struct {
Result string
}
type RegisterUser ¶
type RegisterUserProvider ¶
type RotateAllUserSecurityStamps ¶ added in v0.34.0
type RotateAllUserSecurityStamps struct{}
type SaveCustomOAuthConfig ¶
type SaveCustomOAuthConfig struct {
ID int
Logo *dto.ImageUpload
Provider string
Status int
DisplayName string
ClientID string
ClientSecret string
AuthorizeURL string
TokenURL string
Scope string
ProfileURL string
IsTrusted bool
JSONUserIDPath string
JSONUserNamePath string
JSONUserEmailPath string
JSONUserRolesPath string
AllowedRoles string
}
type SaveVerificationKey ¶
type SaveVerificationKey struct {
Key string
Code string
Duration time.Duration
Request NewEmailVerification
}
type ScheduleTenantDeletion ¶ added in v0.36.0
type ScheduleTenantDeletion struct {
TenantID int
RequestedByUserID int
CancelKey string
ScheduledAt time.Time
}
ScheduleTenantDeletion records the account owner's request to delete the whole site. The tenant stays active during the grace window; a background job performs the hard delete once ScheduledAt passes. CancelKey authorises the email cancel link.
type SetAttachments ¶
type SetKeyAsVerified ¶
type SetKeyAsVerified struct {
Key string
}
type SetPostResponse ¶
type SetPostResponse struct {
Post *entity.Post
Text string
Status enum.PostStatus
}
type SetSystemSettings ¶ added in v0.20.0
type SetTenantProviderStatus ¶ added in v0.30.0
type StoreEvent ¶
type SupressEmail ¶ added in v0.20.0
type TestWebhook ¶ added in v0.20.0
type TestWebhook struct {
ID int
Result *dto.WebhookTriggerResult
}
type ToggleCommentReaction ¶ added in v0.23.0
type TriggerWebhooks ¶ added in v0.20.0
type TriggerWebhooks struct {
Type enum.WebhookType
Props webhook.Props
}
type UnblockUser ¶
type UnblockUser struct {
UserID int
}
type UntrustUser ¶ added in v0.33.0
type UntrustUser struct {
UserID int
}
type UpdateComment ¶
type UpdateCurrentUser ¶
type UpdateCurrentUser struct {
Name string
AvatarType enum.AvatarType
Avatar *dto.ImageUpload
}
type UpdatePost ¶
type UpdateTenantEmailAuthAllowedSettings ¶ added in v0.19.0
type UpdateTenantEmailAuthAllowedSettings struct {
IsEmailAuthAllowed bool
}
type UpdateTenantSettings ¶
type UploadImage ¶
type UploadImage struct {
Image *dto.ImageUpload
Folder string
}
type UploadImages ¶
type UploadImages struct {
Images []*dto.ImageUpload
Folder string
}
type UserListCreateCompany ¶ added in v0.23.0
type UserListHandleRoleChange ¶ added in v0.23.0
type UserListUpdateCompany ¶ added in v0.23.0
Click to show internal directories.
Click to hide internal directories.