Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllImportance = []Importance{ ImportanceLow, ImportanceNormal, ImportanceHigh, }
Functions ¶
This section is empty.
Types ¶
type CreateTaskInput ¶
type CreateTaskInput struct { Title string `json:"title"` Body *string `json:"body"` Importance *Importance `json:"importance"` Due *time.Time `json:"due"` }
func (*CreateTaskInput) MarshalJSON ¶
func (t *CreateTaskInput) MarshalJSON() ([]byte, error)
type Importance ¶
type Importance string
const ( ImportanceLow Importance = "LOW" ImportanceNormal Importance = "NORMAL" ImportanceHigh Importance = "HIGH" )
func (Importance) IsValid ¶
func (e Importance) IsValid() bool
func (Importance) MarshalGQL ¶
func (e Importance) MarshalGQL(w io.Writer)
func (Importance) String ¶
func (e Importance) String() string
func (*Importance) UnmarshalGQL ¶
func (e *Importance) UnmarshalGQL(v interface{}) error
type Task ¶
type Task struct { ID string `json:"id"` Title string `json:"title"` Body *string `json:"body"` Importance Importance `json:"importance"` Due *time.Time `json:"due"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
func (*Task) UnmarshalJSON ¶
type UpdateTaskInput ¶
type UpdateTaskInput struct { ID string `json:"id"` Title string `json:"title"` Body *string `json:"body"` Importance Importance `json:"importance"` Due *time.Time `json:"due"` }
func (*UpdateTaskInput) MarshalJSON ¶
func (t *UpdateTaskInput) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.