components

package
v0.0.0-...-791dfb5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMail

func SendMail(Config map[string]interface{}, subject string, message string, recipients ...string) error

SendMail sends email, with recipient

Types

type S3

type S3 struct {
	Config *aws.Config
	Bucket string
}

S3 main type

func NewS3

func NewS3(accesskey string, secretkey string, host string, bucketname string, region string) (S3, error)

NewS3 create new S3 instance

func (*S3) DeleteObject

func (x *S3) DeleteObject(objectName string) error

DeleteObject delete object from s3

func (*S3) UploadJPEG

func (x *S3) UploadJPEG(b []byte, filename string) (string, error)

UploadJPEG uploads jpeg to s3

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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