model

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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