Documentation ¶
Index ¶
- func CreateUser(w http.ResponseWriter, c *Context, user *User)
- func DMP(w http.ResponseWriter, r *http.Request, c *Context)
- func InternalError(w http.ResponseWriter, c *Context, err error)
- func ListUser(w http.ResponseWriter, c *Context)
- func LogError(c *Context, err error)
- type Context
- type DB
- type Log
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, c *Context, user *User)
func InternalError ¶
func InternalError(w http.ResponseWriter, c *Context, err error)
func ListUser ¶
func ListUser(w http.ResponseWriter, c *Context)
Types ¶
type Context ¶
func NewContext ¶
func (*Context) RenderError ¶
func (c *Context) RenderError(w http.ResponseWriter, msg string, err error)
func (*Context) RenderJSON ¶
func (c *Context) RenderJSON(w http.ResponseWriter, msg interface{})
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateTable ¶
func (*DB) InsertUser ¶
func (*DB) ListAllUser ¶
Click to show internal directories.
Click to hide internal directories.