client

package
v0.0.0-...-acefb17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailClientImpl

func NewEmailClientImpl(SMTPUsername string, SMTPPassword string, SMTPHost string, SMTPPort string) infrastructureInterface.EmailClient

func NewStorageClientImpl

func NewStorageClientImpl(str *minio.Client) infrastructureInterface.StorageClient

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL