gcsimage

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anchor added in v0.0.3

type Anchor int
const (
	Center Anchor = iota
	TopLeft
	Top
	TopRight
	Left
	Right
	BottomLeft
	Bottom
	BottomRight
)

type Bucket added in v0.0.2

type Bucket struct {
	// contains filtered or unexported fields
}

func InitBucket added in v0.0.2

func InitBucket(ctx c.Context, bucket string, jpegQuality int) (*Bucket, error)

func (*Bucket) Add added in v0.0.2

func (b *Bucket) Add(ctx c.Context, data []byte) (string, error)

func (*Bucket) Get added in v0.0.2

func (b *Bucket) Get(ctx c.Context, id string, ext Ext, anchor Anchor, width, height int) ([]byte, error)

func (*Bucket) Save added in v0.0.6

func (b *Bucket) Save(ctx c.Context, key string, data []byte) error

type Ext added in v0.0.9

type Ext string
const (
	JPG Ext = "jpg"
	PNG     = "png"
)

Jump to

Keyboard shortcuts

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