repository

package
v0.0.0-...-3b05dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3_REGION = "us-east-2"
	S3_BUCKET = "cos143"
	S3_ACL    = "public-read"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisRepository

type RedisRepository struct {
	// contains filtered or unexported fields
}

func NewRedisRepository

func NewRedisRepository() *RedisRepository

func (*RedisRepository) Connect

func (r *RedisRepository) Connect(password string) error

func (*RedisRepository) GetValue

func (r *RedisRepository) GetValue(key string) (string, error)

func (*RedisRepository) SetKeyValue

func (r *RedisRepository) SetKeyValue(key, value string) error

type S3Repository

type S3Repository struct {
	// contains filtered or unexported fields
}

func NewS3Repository

func NewS3Repository(accessKey, secretKey string) (*S3Repository, error)

func (*S3Repository) AddFileToS3

func (s *S3Repository) AddFileToS3(name string, reader *bytes.Reader) (string, error)

type S3Response

type S3Response struct {
	FileURL string `json:"fileURL"`
}

Jump to

Keyboard shortcuts

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