routing

package
v0.0.0-...-fc1953b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: GPL-3.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CREATE_USER = 0x1
	LOGIN_USER  = 0x2
	LOGOUT_USER = 0x3
)

Variables

This section is empty.

Functions

func SaveImage

func SaveImage(dataBuff *bytes.Buffer, cntType string, OrgFileName string, bounds image.Rectangle, expressions []string, userId string) (error, string)

func Upload

func Upload(ctx iris.Context)

func UserJoin

func UserJoin(ctx iris.Context)

func UserLogin

func UserLogin(ctx iris.Context)

func UserProfile

func UserProfile(ctx iris.Context)

func UserTool

func UserTool(tool int, ctx iris.Context)

func ViewImageInfo

func ViewImageInfo(ctx iris.Context)

func ViewedExpressions

func ViewedExpressions(mode string, ctx iris.Context)

func ViewedImages

func ViewedImages(mode string, ctx iris.Context)

Types

type API_ArtInfo

type API_ArtInfo struct {
	ID          string           `json:"id"`
	URL         string           `json:"URL"`
	Width       int              `json:"width"`
	Height      int              `json:"height"`
	Size        int              `json:"size"`
	Views       int              `json:"views"`
	Uploaded    time.Time        `json:"uploaded"`
	Expressions []API_Expression `json:"expressions"`
}

type API_Category

type API_Category struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type API_Expression

type API_Expression struct {
	Expression string         `json:"expression"`
	Categories []API_Category `json:"categories,omitempty"`
	Usage      int            `json:"usage"`
	ID         string         `json:"id"`
}

type HomePage

type HomePage struct {
	Token      string
	Error      string
	Expression string
}

type JsonError

type JsonError struct {
	Error string `json:"error,omitempty"`
}

type UploadResult

type UploadResult struct {
	ID string `json:"id,omitempty"`
}

Jump to

Keyboard shortcuts

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