Documentation
¶
Index ¶
Constants ¶
View Source
const (
LocalHostType = "local"
)
View Source
const (
S3HostType = "s3"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { HostType() string Put(fileData string) (string, error) Get(identifier string) (string, error) Delete(identifier string) error SetTTL(identifier string, ttl int64) error Cleanup() error DropAll() error ListTimetable() ([]string, error) }
func NewAttachmentHandler ¶
NewAttachmentHandler will create a new handler based on the given type
func NewLocalTempHandler ¶
Click to show internal directories.
Click to hide internal directories.