Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTodoPriority = []TodoPriority{ TodoPriorityLow, TodoPriorityMedium, TodoPriorityHigh, }
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo struct { ID string `json:"id"` Name string `json:"name"` Priority TodoPriority `json:"priority"` IsDone bool `json:"is_done"` }
Todo Entity
type TodoInput ¶
type TodoInput struct { Name string `json:"name"` Priority TodoPriority `json:"priority"` }
type TodoPriority ¶
type TodoPriority string
const ( TodoPriorityLow TodoPriority = "low" TodoPriorityMedium TodoPriority = "medium" TodoPriorityHigh TodoPriority = "high" )
func (TodoPriority) IsValid ¶
func (e TodoPriority) IsValid() bool
func (TodoPriority) MarshalGQL ¶
func (e TodoPriority) MarshalGQL(w io.Writer)
func (TodoPriority) String ¶
func (e TodoPriority) String() string
func (*TodoPriority) UnmarshalGQL ¶
func (e *TodoPriority) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.