Help us shape the future of Go! Take the 2026 Go Developer Survey

oss

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetObjectURL(bucket string, object *Object) string
	GetObjectCachedURL(bucket string, object *Object) string
	GetObjectSignedURL(bucket string, object *Object, expires time.Time) string
	UploadObjectFromFile(ormService *orm.Engine, bucket, localFile string) Object
	UploadObjectFromBase64(ormService *orm.Engine, bucket, content, extension string) Object
	UploadImageFromFile(ormService *orm.Engine, bucket, localFile string) Object
	UploadImageFromBase64(ormService *orm.Engine, bucket, image, extension string) Object
}

type Object

type Object struct {
	ID         uint64
	StorageKey string
	CachedURL  string
	Data       interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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