model

package
v0.0.1-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type NewRecipe

type NewRecipe struct {
	Name string `json:"name"`
}

type Recipe

type Recipe struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Planned bool   `json:"planned"`
}

type Result

type Result struct {
	Status Status `json:"status"`
}

type Status

type Status string
const (
	StatusSuccess  Status = "Success"
	StatusError    Status = "Error"
	StatusNotFound Status = "NotFound"
)

func (Status) IsValid

func (e Status) IsValid() bool

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

func (Status) String

func (e Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(v interface{}) error

type UpdateRecipe

type UpdateRecipe struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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