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.
Click to show internal directories.
Click to hide internal directories.