Documentation ¶
Index ¶
- Constants
- func NewAvatarUpdater(mi *MindwellImages) func(me.PutMeAvatarParams, *models.UserID) middleware.Responder
- func NewCoverUpdater(mi *MindwellImages) func(me.PutMeCoverParams, *models.UserID) middleware.Responder
- func NewImageDeleter(mi *MindwellImages) func(images.DeleteImagesIDParams, *models.UserID) middleware.Responder
- func NewImageFinder(mi *MindwellImages) func(images.GetImagesFindParams, *models.UserID) middleware.Responder
- func NewImageLoader(mi *MindwellImages) func(images.GetImagesIDParams, *models.UserID) middleware.Responder
- func NewImageUploader(mi *MindwellImages) func(images.PostImagesParams, *models.UserID) middleware.Responder
- func NewThemeAvatarUpdater(mi *MindwellImages) func(themes.PutThemesNameAvatarParams, *models.UserID) middleware.Responder
- func NewThemeCoverUpdater(mi *MindwellImages) func(themes.PutThemesNameCoverParams, *models.UserID) middleware.Responder
- type ImageProcessor
- type MindwellImages
- func (mi *MindwellImages) BaseURL() string
- func (mi *MindwellImages) ConfigBytes(key string) []byte
- func (mi *MindwellImages) ConfigString(key string) string
- func (mi *MindwellImages) DB() *sql.DB
- func (mi *MindwellImages) Folder() string
- func (mi *MindwellImages) LogApi() *zap.Logger
- func (mi *MindwellImages) LogImages() *zap.Logger
- func (mi *MindwellImages) LogSystem() *zap.Logger
- func (mi *MindwellImages) QueueAction(is *imageStore, ID int64, action string)
- func (mi *MindwellImages) Shutdown()
- func (mi *MindwellImages) TokenHash() utils.TokenHash
- func (mi *MindwellImages) TypedLog(tpe string) *zap.Logger
Constants ¶
View Source
const ( ActionAvatar = "avatar" ActionCover = "cover" ActionAlbum = "album" ActionDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
func NewAvatarUpdater ¶
func NewAvatarUpdater(mi *MindwellImages) func(me.PutMeAvatarParams, *models.UserID) middleware.Responder
func NewCoverUpdater ¶
func NewCoverUpdater(mi *MindwellImages) func(me.PutMeCoverParams, *models.UserID) middleware.Responder
func NewImageDeleter ¶
func NewImageDeleter(mi *MindwellImages) func(images.DeleteImagesIDParams, *models.UserID) middleware.Responder
func NewImageFinder ¶
func NewImageFinder(mi *MindwellImages) func(images.GetImagesFindParams, *models.UserID) middleware.Responder
func NewImageLoader ¶
func NewImageLoader(mi *MindwellImages) func(images.GetImagesIDParams, *models.UserID) middleware.Responder
func NewImageUploader ¶
func NewImageUploader(mi *MindwellImages) func(images.PostImagesParams, *models.UserID) middleware.Responder
func NewThemeAvatarUpdater ¶
func NewThemeAvatarUpdater(mi *MindwellImages) func(themes.PutThemesNameAvatarParams, *models.UserID) middleware.Responder
func NewThemeCoverUpdater ¶
func NewThemeCoverUpdater(mi *MindwellImages) func(themes.PutThemesNameCoverParams, *models.UserID) middleware.Responder
Types ¶
type ImageProcessor ¶
type ImageProcessor struct { ID int64 //image or user id // contains filtered or unexported fields }
func (*ImageProcessor) Work ¶
func (ip *ImageProcessor) Work()
type MindwellImages ¶
type MindwellImages struct {
// contains filtered or unexported fields
}
func NewMindwellImages ¶
func NewMindwellImages(cfg *config.Config) *MindwellImages
func (*MindwellImages) BaseURL ¶
func (mi *MindwellImages) BaseURL() string
func (*MindwellImages) ConfigBytes ¶
func (mi *MindwellImages) ConfigBytes(key string) []byte
func (*MindwellImages) ConfigString ¶
func (mi *MindwellImages) ConfigString(key string) string
func (*MindwellImages) DB ¶
func (mi *MindwellImages) DB() *sql.DB
func (*MindwellImages) Folder ¶
func (mi *MindwellImages) Folder() string
func (*MindwellImages) LogApi ¶
func (mi *MindwellImages) LogApi() *zap.Logger
func (*MindwellImages) LogImages ¶
func (mi *MindwellImages) LogImages() *zap.Logger
func (*MindwellImages) LogSystem ¶
func (mi *MindwellImages) LogSystem() *zap.Logger
func (*MindwellImages) QueueAction ¶
func (mi *MindwellImages) QueueAction(is *imageStore, ID int64, action string)
func (*MindwellImages) Shutdown ¶
func (mi *MindwellImages) Shutdown()
func (*MindwellImages) TokenHash ¶
func (mi *MindwellImages) TokenHash() utils.TokenHash
Click to show internal directories.
Click to hide internal directories.