base

package
v0.0.0-...-ebc8d01 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 4 Imported by: 2 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CtxKeyUID = "uid"
)

Variables

This section is empty.

Functions

func RespStatusAndData

func RespStatusAndData(statusCode int, data interface{}) map[string]interface{}

func RespStatusAndIDCODEData

func RespStatusAndIDCODEData(statusCode int, data1 interface{}, data2 interface{}) map[string]interface{}

func RespStatusAndTwoData

func RespStatusAndTwoData(statusCode int, data1 interface{}, data2 interface{}) map[string]interface{}

func SaltHashCompare

func SaltHashCompare(digest []byte, password *string) bool

func SaltHashGenerate

func SaltHashGenerate(password *string) (string, error)

func WriteStatusAndDataJSON

func WriteStatusAndDataJSON(ctx *server.Context, status int, data interface{}) error

func WriteStatusAndIDJSON

func WriteStatusAndIDJSON(ctx *server.Context, status int, id interface{}) error

Types

type Context

type Context struct {
	*server.Context
}

func (*Context) SetUID

func (c *Context) SetUID(id uint32)

func (*Context) UID

func (c *Context) UID() uint32

type Controller

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

func New

func New(db *sql.DB) *Controller

func (*Controller) SQLStore

func (c *Controller) SQLStore() *sql.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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