schema

package
v0.0.0-...-7967cdc Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema, _ = graphql.NewSchema(graphql.SchemaConfig{
	Query: queryType,
})

Schema is the GraphQL schema served by the server.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name      string `json:"lastName"`
	FirstName string `json:"firstName"`
}

Author representation.

type Cookie struct {
	Fortune Fortune `json:"fortune"`
}

Cookie containing fortunes.

type Fortune

type Fortune struct {
	Message string `json:"message"`
}

Fortune contains the message.

type Post

type Post struct {
	Title string `json:"title"`
	Views int    `json:"views"`
}

Post representation.

Jump to

Keyboard shortcuts

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