model

package
v0.0.0-...-9d181e9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllMood = []Mood{
	MoodHappy,
	MoodSad,
}

Functions

This section is empty.

Types

type Employee

type Employee struct {
	ID          int  `json:"id"`
	CurrentMood Mood `json:"currentMood"`
}

func (Employee) IsEntity

func (Employee) IsEntity()

type Mood

type Mood string
const (
	MoodHappy Mood = "HAPPY"
	MoodSad   Mood = "SAD"
)

func (Mood) IsValid

func (e Mood) IsValid() bool

func (Mood) MarshalGQL

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

func (Mood) String

func (e Mood) String() string

func (*Mood) UnmarshalGQL

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

type Mutation

type Mutation struct {
}

type Query

type Query struct {
}

Jump to

Keyboard shortcuts

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