Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTodoInput

type CreateTodoInput struct {
	Text   string `json:"text"`
	UserID string `json:"userId"`
}

type CreateTodoPayload

type CreateTodoPayload struct {
	Todo *Todo `json:"todo"`
}

type Node

type Node interface {
	IsNode()
}

type Todo

type Todo struct {
	ID   string `json:"id"`
	Text string `json:"text"`
	Done bool   `json:"done"`
	User *User  `json:"user"`
}

func (Todo) IsNode

func (Todo) IsNode()

type User

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

func (User) IsNode

func (User) IsNode()

Jump to

Keyboard shortcuts

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