Documentation ¶
Index ¶
- Constants
- Variables
- func AddTodo(text string, complete bool) string
- func ChangeTodoStatus(id string, complete bool)
- func MarkAllTodos(complete bool) []string
- func RemoveCompletedTodos() []string
- func RemoveTodo(id string)
- func RenameTodo(id string, text string)
- func TodosToSliceInterface(todos []*Todo) []interface{}
- type Todo
- type User
Constants ¶
View Source
const ViewerId = "me"
Mock authenticated ID
Variables ¶
View Source
var Schema graphql.Schema
Functions ¶
func ChangeTodoStatus ¶
func MarkAllTodos ¶
func RemoveCompletedTodos ¶
func RemoveCompletedTodos() []string
func RemoveTodo ¶
func RemoveTodo(id string)
func RenameTodo ¶
func TodosToSliceInterface ¶
func TodosToSliceInterface(todos []*Todo) []interface{}
Types ¶
Click to show internal directories.
Click to hide internal directories.