model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type NewTodo

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

type Todo

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

type TodosCondition

type TodosCondition struct {
	SearchText *string                   `json:"searchText,omitempty"`
	Statuses   []TodosConditionStatus    `json:"statuses,omitempty"`
	UserStatus *TodosConditionUserStatus `json:"userStatus,omitempty"`
	User       *TodosConditionUser       `json:"user,omitempty"`
}

type TodosConditionStatus

type TodosConditionStatus string
const (
	TodosConditionStatusDone     TodosConditionStatus = "DONE"
	TodosConditionStatusAssigned TodosConditionStatus = "ASSIGNED"
)

func (TodosConditionStatus) IsValid

func (e TodosConditionStatus) IsValid() bool

func (TodosConditionStatus) MarshalGQL

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

func (TodosConditionStatus) String

func (e TodosConditionStatus) String() string

func (*TodosConditionStatus) UnmarshalGQL

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

type TodosConditionUser

type TodosConditionUser struct {
	Name *string `json:"name,omitempty"`
}

type TodosConditionUserStatus

type TodosConditionUserStatus string
const (
	TodosConditionUserStatusAvailable   TodosConditionUserStatus = "AVAILABLE"
	TodosConditionUserStatusUnavailable TodosConditionUserStatus = "UNAVAILABLE"
)

func (TodosConditionUserStatus) IsValid

func (e TodosConditionUserStatus) IsValid() bool

func (TodosConditionUserStatus) MarshalGQL

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

func (TodosConditionUserStatus) String

func (e TodosConditionUserStatus) String() string

func (*TodosConditionUserStatus) UnmarshalGQL

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

type TodosSortBy

type TodosSortBy string
const (
	TodosSortByNameAsc  TodosSortBy = "NAME_ASC"
	TodosSortByNameDesc TodosSortBy = "NAME_DESC"
)

func (TodosSortBy) IsValid

func (e TodosSortBy) IsValid() bool

func (TodosSortBy) MarshalGQL

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

func (TodosSortBy) String

func (e TodosSortBy) String() string

func (*TodosSortBy) UnmarshalGQL

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

type User

type User struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Todos []*Todo `json:"todos"`
}

Jump to

Keyboard shortcuts

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