Documentation
¶
Index ¶
- func NewEmailClientImpl(SMTPUsername string, SMTPPassword string, SMTPHost string, SMTPPort string) infrastructureInterface.EmailClient
- func NewStorageClientImpl(str *minio.Client) infrastructureInterface.StorageClient
- type EmailClientImpl
- type StorageClientImpl
- func (sc *StorageClientImpl) LoadFile(fileName, bucketName string) ([]byte, error)
- func (sc *StorageClientImpl) SaveFile(fileBytes []byte, bucketName, fileName string) error
- func (sc *StorageClientImpl) UpdateFile(newFileBytes []byte, fileName string, bucketName string) error
- func (sc *StorageClientImpl) UpdateFileName(oldName, newName string, bucketName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmailClientImpl ¶
func NewStorageClientImpl ¶
Types ¶
type EmailClientImpl ¶
type EmailClientImpl struct {
SMTPUsername string
SMTPPassword string
SMTPHost string
SMTPPort string
}
func (*EmailClientImpl) SendEmail ¶
func (c *EmailClientImpl) SendEmail(to, subject, body string) error
type StorageClientImpl ¶
type StorageClientImpl struct {
// contains filtered or unexported fields
}
func (*StorageClientImpl) LoadFile ¶
func (sc *StorageClientImpl) LoadFile(fileName, bucketName string) ([]byte, error)
func (*StorageClientImpl) SaveFile ¶
func (sc *StorageClientImpl) SaveFile(fileBytes []byte, bucketName, fileName string) error
func (*StorageClientImpl) UpdateFile ¶
func (sc *StorageClientImpl) UpdateFile(newFileBytes []byte, fileName string, bucketName string) error
func (*StorageClientImpl) UpdateFileName ¶
func (sc *StorageClientImpl) UpdateFileName(oldName, newName string, bucketName string) error
Click to show internal directories.
Click to hide internal directories.