rcali

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClassNums       = 8
	ClassNumsStr    = "8"
	UserListNums    = 10
	UserListNumsStr = "10"
)

Variables

View Source
var DEBUG = Debug("")

Functions

func AddBook added in v0.0.2

func AddBook(bookpath string) bool

func DeleteBook added in v0.0.2

func DeleteBook(bookid int) bool

func DeleteLoginSession added in v0.0.2

func DeleteLoginSession(loginSession string)

func DeleteLoginUserId added in v0.0.2

func DeleteLoginUserId(userId string)

func EmptyIamge

func EmptyIamge(width, height int) image.Image

func FileExists

func FileExists(path string) (bool, error)

func GetBooksPath

func GetBooksPath() (string, bool)

func GetSqliteDbPath

func GetSqliteDbPath() (string, bool)

func GetUploadPath added in v0.0.2

func GetUploadPath() (string, bool)

func GetUserIdByLoginSession added in v0.0.2

func GetUserIdByLoginSession(loginSession string) (string, time.Time)

func Home added in v0.0.2

func Home() (string, error)

Home returns the home directory for the executing user.

This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.

func JpegImage2Bytes

func JpegImage2Bytes(img image.Image) []byte

func QueryParamsFilter added in v0.0.2

func QueryParamsFilter(c *revel.Controller, fc []revel.Filter)

query info to request.form,form exist first

func ResizeImage

func ResizeImage(width, height uint, img image.Image) image.Image

func SetLoginUser added in v0.0.2

func SetLoginUser(loginSession string, userId string)

func Sha3_256 added in v0.0.2

func Sha3_256(in string) string

func ValueOrDefault added in v0.0.2

func ValueOrDefault(value, def string) string

Return value if nonempty, def otherwise.

Types

type Circle

type Circle struct {
	X, Y, R float64
}

func (*Circle) Brightness

func (c *Circle) Brightness(x, y float64) uint8

type Debug

type Debug string

for debug

func (Debug) Debug

func (d Debug) Debug(a ...interface{})

type FILE

type FILE []byte

func (FILE) Apply

func (i FILE) Apply(req *revel.Request, resp *revel.Response)

type IMGJPG

type IMGJPG []byte

func (IMGJPG) Apply

func (i IMGJPG) Apply(req *revel.Request, resp *revel.Response)

Jump to

Keyboard shortcuts

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