sample

package
v0.0.0-...-4ebdfc9 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(impl Query) gql.Service

Types

type Human

type Human struct {
	Id         string
	Name       string
	HomePlanet string
}

func (Human) ValueFromName

func (x Human) ValueFromName(name string) interface{}

type Query

type Query interface {
	Human(ctx context.Context, id string) (Human, error)
}

Jump to

Keyboard shortcuts

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