simple

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersonResolver

type PersonResolver struct {
	// contains filtered or unexported fields
}

PersonResolver resolves a person.

func (*PersonResolver) Height

func (p *PersonResolver) Height() int

Height returns the height of the person.

func (*PersonResolver) Name

func (p *PersonResolver) Name() string

Name returns the name of the person.

type RootResolver

type RootResolver struct {
	// contains filtered or unexported fields
}

RootResolver resolves RootQuery

func (*RootResolver) AllPeople

func (r *RootResolver) AllPeople() []*PersonResolver

AllPeople returns the list of all people.

func (*RootResolver) GetCounter

func (r *RootResolver) GetCounter(ctx context.Context, outCh chan<- int)

GetCounter returns the counter value.

func (*RootResolver) GetSinglePerson

func (r *RootResolver) GetSinglePerson(ctx context.Context, outCh chan<- *PersonResolver)

GetSinglePerson returns a single person.

func (*RootResolver) Names

func (r *RootResolver) Names(ctx context.Context, outCh chan<- string) error

Names resolves the names field.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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