Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo struct { Id int `json:"id"` State int `json:"state"` TagId int `json:"tag_id"` OwnerId int `json:"owner_id"` Public bool `json:"public"` Name string `json:"name"` DueDate time.Time `json:"due_date"` Desc string `json:"description"` }
Represent a todo item
func ListAllTodos ¶
List all viewable todos to the owner_id in the database
func (*Todo) InsertValues ¶
Inserts a new todo. Returns true on success, false on error.
func (*Todo) ReadPermissions ¶
Read in the only the owner and publicness of a todo id. Returns true if values were read.
func (*Todo) ReadValues ¶
Read in the values of a todo based on id. Returns true if values were read.
func (*Todo) Remove ¶
Remove a todo from the database based on Id. Returns true on successful removal.
func (*Todo) WriteValues ¶
Updates an existing todo. Returns true on success, false on error.
type Token ¶
type Token struct { Id int `json:"id"` Type int `json:"type"` Value string `json:"value"` OwnerId int `json:"owner_id"` }
Represent a token
func (*Token) InsertValues ¶
Inserts a new token. Returns true on success, false on error.
func (*Token) ReadValues ¶
Read in the values of a token based on value. Returns true if values were read
Click to show internal directories.
Click to hide internal directories.