img

package
v0.0.0-...-cbaa3f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 14 Imported by: 0

README

Seo friendly image processor

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Db       *gorp.DbMap
	WebpAddr string
	// contains filtered or unexported fields
}

func NewApi

func NewApi(db *gorp.DbMap, path string, net uint8, dbname,
	defaultloc string, sizes []Size) *Api

func (*Api) Create

func (a *Api) Create(data []byte, name string, descr string) (Img, error)

func (*Api) ExistName

func (a *Api) ExistName(name string) (bool, error)

type Img

type Img struct {
	Id          int64
	Name        string
	Description string

	Named bool

	Deleted int64
	Updated int64
	Created int64
	Version int64
}

type Size

type Size struct {
	Width  int
	Height int
	Crop   string
}

Jump to

Keyboard shortcuts

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