Documentation
¶
Index ¶
- Constants
- func RespStatusAndData(statusCode int, data interface{}) map[string]interface{}
- func RespStatusAndIDCODEData(statusCode int, data1 interface{}, data2 interface{}) map[string]interface{}
- func RespStatusAndTwoData(statusCode int, data1 interface{}, data2 interface{}) map[string]interface{}
- func SaltHashCompare(digest []byte, password *string) bool
- func SaltHashGenerate(password *string) (string, error)
- func WriteStatusAndDataJSON(ctx *server.Context, status int, data interface{}) error
- func WriteStatusAndIDJSON(ctx *server.Context, status int, id interface{}) error
- type Context
- type Controller
Constants ¶
View Source
const (
CtxKeyUID = "uid"
)
Variables ¶
This section is empty.
Functions ¶
func RespStatusAndData ¶
func RespStatusAndIDCODEData ¶
func RespStatusAndTwoData ¶
func SaltHashCompare ¶
func SaltHashGenerate ¶
func WriteStatusAndDataJSON ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.