Documentation ¶
Index ¶
- func BuildSort(sort *param.Sort, dalStruct interface{}, dalDO interface{}) error
- func GetAuthorizedUser(ctx context.Context) (*entity.User, bool)
- func MustGetAuthorizedUser(ctx context.Context) (*entity.User, error)
- func NewAdminService(userService service.UserService, cache cache.Cache, config *config.Config, ...) service.AdminService
- func NewAttachmentService(optionService service.OptionService, ...) service.AttachmentService
- func NewAuthenticateService(categoryService service.CategoryService, cache cache.Cache) service.AuthenticateService
- func NewBackUpService(config *config.Config, optionService service.OptionService, ...) service.BackupService
- func NewBaseCommentService(userService service.UserService, optionService service.OptionService, ...) service.BaseCommentService
- func NewBaseMFAService() service.BaseMFAService
- func NewBasePostService(optionService service.OptionService, ...) service.BasePostService
- func NewCategoryService(optionService service.OptionService) service.CategoryService
- func NewClientOptionService(config *config.Config, cache cache.Cache, event event.Bus, logger *zap.Logger, ...) service.ClientOptionService
- func NewEmailService(optionService service.OptionService) service.EmailService
- func NewExportImport(categoryService service.CategoryService, postService service.PostService, ...) service.ExportImport
- func NewInstallService(optionService service.OptionService, event event.Bus, ...) service.InstallService
- func NewJournalCommentService(baseCommentService service.BaseCommentService) service.JournalCommentService
- func NewJournalService(journalCommentService service.JournalCommentService) service.JournalService
- func NewLinkService() service.LinkService
- func NewLogService() service.LogService
- func NewMenuService() service.MenuService
- func NewMetaService() service.MetaService
- func NewOneTimeTokenService(cache cache.Cache) service.OneTimeTokenService
- func NewOptionService(config *config.Config, cache cache.Cache, event event.Bus, logger *zap.Logger) service.OptionService
- func NewPhotoService() service.PhotoService
- func NewPostCategoryService(categoryService service.CategoryService) service.PostCategoryService
- func NewPostCommentService(baseCommentService service.BaseCommentService) service.PostCommentService
- func NewPostService(basePostService service.BasePostService, ...) service.PostService
- func NewPostTagService(tagService service.TagService) service.PostTagService
- func NewSheetCommentService(baseCommentService service.BaseCommentService) service.SheetCommentService
- func NewSheetService(basePostService service.BasePostService, metaService service.MetaService, ...) service.SheetService
- func NewStatisticService(postService service.PostService, postCommentService service.PostCommentService, ...) service.StatisticService
- func NewTagService(optionService service.OptionService) service.TagService
- func NewThemeService(optionService service.OptionService, config *config.Config, event event.Bus, ...) service.ThemeService
- func NewTwoFactorTOTPMFAService(baseMFA service.BaseMFAService) service.TwoFactorTOTPMFAService
- func NewUserService(twoFactorMFAService service.TwoFactorTOTPMFAService, event event.Bus) service.UserService
- func UnderscoreName(name string) string
- func WrapDBErr(err error) error
- type Order
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdminService ¶
func NewAdminService(userService service.UserService, cache cache.Cache, config *config.Config, event event.Bus, twoFactorMFA service.TwoFactorTOTPMFAService, emailService service.EmailService) service.AdminService
func NewAttachmentService ¶
func NewAttachmentService(optionService service.OptionService, fileStorageComposite storage.FileStorageComposite) service.AttachmentService
func NewAuthenticateService ¶
func NewAuthenticateService(categoryService service.CategoryService, cache cache.Cache) service.AuthenticateService
func NewBackUpService ¶
func NewBackUpService(config *config.Config, optionService service.OptionService, oneTimeTokenService service.OneTimeTokenService, exportImportService service.ExportImport) service.BackupService
func NewBaseCommentService ¶
func NewBaseCommentService(userService service.UserService, optionService service.OptionService, event event.Bus) service.BaseCommentService
func NewBaseMFAService ¶
func NewBaseMFAService() service.BaseMFAService
func NewBasePostService ¶
func NewBasePostService(optionService service.OptionService, baseCommentService service.BaseCommentService) service.BasePostService
func NewCategoryService ¶
func NewCategoryService(optionService service.OptionService) service.CategoryService
func NewClientOptionService ¶
func NewEmailService ¶
func NewEmailService(optionService service.OptionService) service.EmailService
func NewExportImport ¶ added in v1.0.5
func NewExportImport(categoryService service.CategoryService, postService service.PostService, tagService service.TagService, postTagService service.PostTagService, postCategoryService service.PostCategoryService, ) service.ExportImport
func NewInstallService ¶
func NewInstallService( optionService service.OptionService, event event.Bus, uerService service.UserService, categoryService service.CategoryService, postService service.PostService, postCommentService service.PostCommentService, sheetService service.SheetService, menuService service.MenuService, ) service.InstallService
func NewJournalCommentService ¶
func NewJournalCommentService(baseCommentService service.BaseCommentService) service.JournalCommentService
func NewJournalService ¶
func NewJournalService(journalCommentService service.JournalCommentService) service.JournalService
func NewLinkService ¶
func NewLinkService() service.LinkService
func NewLogService ¶
func NewLogService() service.LogService
func NewMenuService ¶
func NewMenuService() service.MenuService
func NewMetaService ¶
func NewMetaService() service.MetaService
func NewOneTimeTokenService ¶
func NewOneTimeTokenService(cache cache.Cache) service.OneTimeTokenService
func NewOptionService ¶
func NewPhotoService ¶
func NewPhotoService() service.PhotoService
func NewPostCategoryService ¶
func NewPostCategoryService(categoryService service.CategoryService) service.PostCategoryService
func NewPostCommentService ¶
func NewPostCommentService(baseCommentService service.BaseCommentService) service.PostCommentService
func NewPostService ¶
func NewPostService(basePostService service.BasePostService, categoryService service.CategoryService, optionService service.OptionService, event event.Bus, cache cache.Cache, ) service.PostService
func NewPostTagService ¶
func NewPostTagService(tagService service.TagService) service.PostTagService
func NewSheetCommentService ¶
func NewSheetCommentService(baseCommentService service.BaseCommentService) service.SheetCommentService
func NewSheetService ¶
func NewSheetService(basePostService service.BasePostService, metaService service.MetaService, optionService service.OptionService, sheetCommentService service.SheetCommentService, event event.Bus, cache cache.Cache, themeService service.ThemeService, ) service.SheetService
func NewStatisticService ¶
func NewStatisticService(postService service.PostService, postCommentService service.PostCommentService, journalCommentService service.JournalCommentService, sheetCommentService service.SheetCommentService, tagService service.TagService, optionService service.OptionService, categoryService service.CategoryService, linkService service.LinkService, sheetService service.SheetService, userService service.UserService, journalService service.JournalService, ) service.StatisticService
func NewTagService ¶
func NewTagService(optionService service.OptionService) service.TagService
func NewThemeService ¶
func NewThemeService(optionService service.OptionService, config *config.Config, event event.Bus, propertyScanner theme.PropertyScanner, fileScanner theme.FileScanner, multipartZipThemeFetcher theme.MultipartZipThemeFetcher) service.ThemeService
func NewTwoFactorTOTPMFAService ¶
func NewTwoFactorTOTPMFAService(baseMFA service.BaseMFAService) service.TwoFactorTOTPMFAService
func NewUserService ¶
func NewUserService(twoFactorMFAService service.TwoFactorTOTPMFAService, event event.Bus) service.UserService
Types ¶
Source Files ¶
- admin.go
- attachment.go
- authenticate.go
- authentication.go
- backup.go
- base_post.go
- category.go
- client_option.go
- comment_base.go
- comment_journal.go
- comment_post.go
- comment_sheet.go
- common.go
- email.go
- export_import.go
- init.go
- install.go
- journal.go
- link.go
- log.go
- menu.go
- meta.go
- mfa.go
- onetime_token.go
- option.go
- photo.go
- post.go
- post_category.go
- post_tag.go
- sheet.go
- statistic.go
- tag.go
- theme.go
- user.go
Click to show internal directories.
Click to hide internal directories.