Documentation
¶
Index ¶
- type ActivateTenant
- type AddNewComment
- type AddNewNotification
- type AddNewPost
- type AddNewTag
- type AddSubscriber
- type AddVote
- type AssignTag
- type BlockUser
- type ChangeUserEmail
- type ChangeUserRole
- type CreateTenant
- type DeleteBlob
- type DeleteComment
- type DeleteCurrentUser
- type DeleteTag
- type HTTPRequest
- type LogDebug
- type LogError
- type LogInfo
- type LogWarn
- type MarkAllNotificationsAsRead
- type MarkNotificationAsRead
- type MarkPostAsDuplicate
- type NewEmailVerification
- type ParseOAuthRawProfile
- type PurgeExpiredNotifications
- type RegenerateAPIKey
- type RegisterUser
- type RegisterUserProvider
- type RemoveSubscriber
- type RemoveVote
- type SaveCustomOAuthConfig
- type SaveVerificationKey
- type SendMail
- type SetAttachments
- type SetKeyAsVerified
- type SetPostResponse
- type StoreBlob
- type StoreEvent
- type UnassignTag
- type UnblockUser
- type UpdateComment
- type UpdateCurrentUser
- type UpdateCurrentUserSettings
- type UpdatePost
- type UpdateTag
- type UpdateTenantAdvancedSettings
- type UpdateTenantEmailAuthAllowedSettings
- type UpdateTenantPrivacySettings
- type UpdateTenantSettings
- type UploadImage
- type UploadImages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateTenant ¶
type ActivateTenant struct {
TenantID int
}
type AddNewComment ¶
type AddNewNotification ¶
type ChangeUserEmail ¶
type ChangeUserRole ¶
type CreateTenant ¶
type DeleteBlob ¶
type DeleteBlob struct {
Key string
}
type DeleteComment ¶
type DeleteComment struct {
CommentID int
}
type DeleteCurrentUser ¶
type DeleteCurrentUser struct {
}
type HTTPRequest ¶
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 PurgeExpiredNotifications ¶
type PurgeExpiredNotifications struct {
NumOfDeletedNotifications int
}
type RegenerateAPIKey ¶
type RegenerateAPIKey struct {
Result string
}
type RegisterUser ¶
type RegisterUserProvider ¶
type SaveCustomOAuthConfig ¶
type SaveVerificationKey ¶
type SaveVerificationKey struct {
Key string
Duration time.Duration
Request NewEmailVerification
}
type SetAttachments ¶
type SetKeyAsVerified ¶
type SetKeyAsVerified struct {
Key string
}
type SetPostResponse ¶
type SetPostResponse struct {
Post *entity.Post
Text string
Status enum.PostStatus
}
type StoreEvent ¶
type UnblockUser ¶
type UnblockUser struct {
UserID int
}
type UpdateComment ¶
type UpdateCurrentUser ¶
type UpdateCurrentUser struct {
Name string
AvatarType enum.AvatarType
Avatar *dto.ImageUpload
}
type UpdatePost ¶
type UpdateTenantAdvancedSettings ¶
type UpdateTenantAdvancedSettings struct {
CustomCSS string
}
type UpdateTenantEmailAuthAllowedSettings ¶ added in v0.19.0
type UpdateTenantEmailAuthAllowedSettings struct {
IsEmailAuthAllowed bool
}
type UpdateTenantPrivacySettings ¶
type UpdateTenantPrivacySettings struct {
IsPrivate bool
}
type UpdateTenantSettings ¶
type UploadImage ¶
type UploadImage struct {
Image *dto.ImageUpload
Folder string
}
type UploadImages ¶
type UploadImages struct {
Images []*dto.ImageUpload
Folder string
}
Click to show internal directories.
Click to hide internal directories.