Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEvent ¶
func CreateEvent(w http.ResponseWriter, c *Context, event *Event)
func ListEvent ¶
func ListEvent(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) ListAllEvent ¶
type Event ¶
type Event struct { TargetID int `json:"targetID"` Event string `json:"event"` Time int64 `json:"time"` }
func (*Event) DisplayTime ¶
type Msg ¶
type Msg struct { MsgType string `json:"type"` Body json.RawMessage `json:"body"` }
Click to show internal directories.
Click to hide internal directories.