model

package
v0.0.0-...-12dc50b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func (t *Task) UnmarshalJSON(data []byte) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL