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