Documentation
¶
Index ¶
- Constants
- func ConfigMiddleware(databaseURL string) func(*Context, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
- type Attachments
- type Context
- func (c *Context) ChangesFeed(rw web.ResponseWriter, req *web.Request)
- func (c *Context) ConnectToSyncGw(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
- func (c *Context) Root(rw web.ResponseWriter, req *web.Request)
- func (c *Context) WebhookReceiver(rw web.ResponseWriter, req *web.Request)
- type TodoItem
- type TodoList
- type TodoLiteApp
- type TodoProfile
- type TodoliteChange
- type TodoliteChanges
Constants ¶
View Source
const ( Task = "task" List = "list" Profile = "profile" )
Variables ¶
This section is empty.
Functions ¶
func ConfigMiddleware ¶
func ConfigMiddleware(databaseURL string) func(*Context, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
Types ¶
type Attachments ¶
type Attachments map[string]interface{}
type Context ¶
type Context struct { Database *couch.Database DatabaseURL string }
func (*Context) ChangesFeed ¶
func (c *Context) ChangesFeed(rw web.ResponseWriter, req *web.Request)
func (*Context) ConnectToSyncGw ¶
func (c *Context) ConnectToSyncGw(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
func (*Context) WebhookReceiver ¶
func (c *Context) WebhookReceiver(rw web.ResponseWriter, req *web.Request)
type TodoItem ¶
type TodoItem struct { Revision string `json:"_rev"` Id string `json:"_id"` Checked bool `json:"checked"` CreatedAt string `json:"created_at"` ListId string `json:"list_id"` Title string `json:"title"` Type string `json:"type"` OcrDecoded string `json:"ocr_decoded"` Attachments Attachments `json:"_attachments"` }
func (TodoItem) AttachmentUrl ¶
type TodoLiteApp ¶
func NewTodoLiteApp ¶
func NewTodoLiteApp(DatabaseURL, openOCRURL string) *TodoLiteApp
func (TodoLiteApp) FollowChangesFeed ¶
func (t TodoLiteApp) FollowChangesFeed(startingSince string)
func (*TodoLiteApp) InitApp ¶
func (t *TodoLiteApp) InitApp() error
type TodoProfile ¶
type TodoliteChange ¶
type TodoliteChange struct { Sequence interface{} `json:"seq"` Id string `json:"id"` ChangedRevs []couch.ChangedRev `json:"changes"` Deleted bool `json:"deleted"` Type string Title string Parent string // The parent list, or N/A }
func NewTodoLiteChange ¶
func NewTodoLiteChange(database couch.Database, change couch.Change) *TodoliteChange
type TodoliteChanges ¶
type TodoliteChanges struct { Changes []TodoliteChange `json:"results"` LastSequence interface{} `json:"last_seq"` }
Click to show internal directories.
Click to hide internal directories.