assets

package
v0.0.0-...-b84af7b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Id        bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Related   string        `bson:"related" json:"related"`
	RelatedId bson.ObjectId `bson:"related_id" json:"related_id"`
	Path      string        `bson:"path" json:"path"`
	Meta      interface{}   `bson:"meta" json:"meta"`
	Created   time.Time     `bson:"created_at" json:"created_at"`
}

type Module

type Module struct {
	S3 *s3.Bucket `inject:""`
}

func Boot

func Boot() *Module

func (*Module) UploadBase64

func (module *Module) UploadBase64(content, filename, related string, related_id bson.ObjectId, meta interface{}) error

Jump to

Keyboard shortcuts

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