lib

package
v0.0.0-...-96ff6bb Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config
View Source
var DB *gorm.DB

Functions

func ConnectDatabase

func ConnectDatabase()

ConnectDatabase to database

func HashPassword

func HashPassword(password string) string

func LoadConfig

func LoadConfig(fileName string)

func Upload

func Upload(file *multipart.FileHeader) (*string, error)

Types

type CustomContext

type CustomContext struct {
	echo.Context
}

func (*CustomContext) BadRequest

func (c *CustomContext) BadRequest(message string) error

func (*CustomContext) Conflict

func (c *CustomContext) Conflict(message string) error

func (*CustomContext) Internal

func (c *CustomContext) Internal(message string) error

func (*CustomContext) NotFound

func (c *CustomContext) NotFound(message string) error

func (*CustomContext) OK

func (c *CustomContext) OK(v interface{}) error

Jump to

Keyboard shortcuts

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