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