mocks

package
v0.0.0-...-53cc070 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSClient

func NewAWSClient() file.FileClientInterface

func NewResendClient

func NewResendClient() email.Emailer

Types

type AWSClient

type AWSClient struct{}

func (*AWSClient) DeleteFile

func (c *AWSClient) DeleteFile(fileURL string) error

func (*AWSClient) GetFileURL

func (c *AWSClient) GetFileURL(fileURL string) *string

func (*AWSClient) UploadFile

func (c *AWSClient) UploadFile(folder string, fileHeader *multipart.FileHeader, allowedTypes []file.FileType) (*models.FileInfo, error)

type RedisClient

type RedisClient struct{}

func NewRedisClient

func NewRedisClient() *RedisClient

func (*RedisClient) Close

func (r *RedisClient) Close() error

func (*RedisClient) Delete

func (r *RedisClient) Delete(key string) error

func (*RedisClient) Get

func (r *RedisClient) Get(key string) ([]byte, error)

func (*RedisClient) Reset

func (r *RedisClient) Reset() error

func (*RedisClient) Set

func (r *RedisClient) Set(key string, val []byte, exp time.Duration) error

type ResendClient

type ResendClient struct{}

func (*ResendClient) SendWelcome

func (c *ResendClient) SendWelcome(ctx context.Context, email string, name string) error

Jump to

Keyboard shortcuts

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