s3attachments

package
v0.0.0-...-ea65d50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ONE_WEEK = 604800 * time.Second
)

Variables

This section is empty.

Functions

func NewManager

func NewManager(accessKeyID, secretAccessKey, endpoint, region, bucket string, presignExpiration time.Duration, maxContentLength int) (attachments.Manager, error)

Create a new attachments.Manager that stores attachments in S3 (or an S3 API compatible service). Attachments are stored in the given bucket, in folders named for the current day (e.g. 20210331).

Types

This section is empty.

Jump to

Keyboard shortcuts

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