Add server database, returning events

This commit is contained in:
2013-02-22 00:06:10 -05:00
parent 3fc3e3a963
commit 94823e104d
6 changed files with 215 additions and 49 deletions

14
api.go
View File

@ -1,6 +1,18 @@
package asink
type APIStatus uint32
const (
SUCCESS = 0 + iota
ERROR
)
type APIResponse struct {
Status string //may be 'error' or 'success'
Status APIStatus
Explanation string
Events []*Event
}
type EventList struct {
Events []*Event
}