bootstrapql

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Query is immutable graphql request
	Query = "query"
	// IsNodeUpQuery is a query name for checking if node is up
	IsNodeUpQuery = "isNodeUp"

	// NodeID is a field name for nodeID
	NodeID = "nodeID"
)

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(service *bootstrapweb.Service) (schema graphql.Schema, err error)

CreateSchema creates a schema for bootstrap graphql api

Types

type TypeCreator

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

TypeCreator handles graphql type creation and error checking

func (*TypeCreator) Create

func (c *TypeCreator) Create(service *bootstrapweb.Service) error

Create create types and check for error

func (*TypeCreator) RootQuery

func (c *TypeCreator) RootQuery() *graphql.Object

RootQuery returns instance of query *graphql.Object

type Types

type Types interface {
	RootQuery() *graphql.Object
}

Types return graphql type objects

Jump to

Keyboard shortcuts

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