Documentation ¶
Index ¶
- func CreateItem(w http.ResponseWriter, c *Context, item *Item)
- func DMP(w http.ResponseWriter, r *http.Request, c *Context)
- func InternalError(w http.ResponseWriter, c *Context, err error)
- func ListItem(w http.ResponseWriter, c *Context)
- func LogError(c *Context, err error)
- type Context
- type DB
- type Item
- type Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateItem ¶
func CreateItem(w http.ResponseWriter, c *Context, item *Item)
func InternalError ¶
func InternalError(w http.ResponseWriter, c *Context, err error)
func ListItem ¶
func ListItem(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) InsertItem ¶
func (*DB) ListAllItem ¶
Click to show internal directories.
Click to hide internal directories.