Documentation ¶
Index ¶
- Constants
- type AuthService
- type AuthServiceConfig
- type MailService
- type MailServiceConfig
- type SendEmailVerificationMailInput
- type SendPasswordResetInput
- type Services
- type StorageService
- func (s *StorageService) Get(userID *mytype.OID, key string) (*minio.Object, error)
- func (s *StorageService) GetThumbnail(size int, userID *mytype.OID, key string) (*minio.Object, error)
- func (s *StorageService) Upload(userID *mytype.OID, file io.Reader, contentType string, size int64) (*UploadResponse, error)
- type UploadResponse
Constants ¶
View Source
const ( EmailVerificationSubject = "[rkus.ninja] Please verify your email address" PasswordResetSubject = "[rkus.ninja] Password reset request" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(svc kmsiface.KMSAPI, conf *AuthServiceConfig) *AuthService
func (*AuthService) ValidateJWT ¶
type AuthServiceConfig ¶
type AuthServiceConfig struct {
KeyID string
}
type MailService ¶
type MailService struct {
// contains filtered or unexported fields
}
func NewMailService ¶
func NewMailService(svc sesiface.SESAPI, conf *MailServiceConfig) *MailService
func (*MailService) SendEmailVerificationMail ¶
func (s *MailService) SendEmailVerificationMail( input *SendEmailVerificationMailInput, ) error
func (*MailService) SendPasswordResetMail ¶
func (s *MailService) SendPasswordResetMail( input *SendPasswordResetInput, ) error
type MailServiceConfig ¶
type SendPasswordResetInput ¶
type Services ¶
type Services struct { Auth *AuthService Mail *MailService Storage *StorageService }
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
StorageService - service used for storing assets
func NewStorageService ¶
func NewStorageService(conf *myconf.Config) (*StorageService, error)
NewStorageService - create a new storage service instance
func (*StorageService) GetThumbnail ¶
func (s *StorageService) GetThumbnail( size int, userID *mytype.OID, key string, ) (*minio.Object, error)
GetThumbnail - get a thumbnail of an asset, and generate it first if necessary
type UploadResponse ¶
UploadResponse - response object from Upload
Click to show internal directories.
Click to hide internal directories.