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) 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 ¶
type S3Response ¶
type S3Response struct {
FileURL string `json:"fileURL"`
}
Click to show internal directories.
Click to hide internal directories.