gqlserver

package
v0.0.0-...-7b6d726 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Logger  Logger
	Service resolver.Service
}

Configuration contains settings for graphQL server

type Logger

type Logger interface {
	Debug(msg ...interface{})
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Fatal(msg ...interface{})
}

Logger ...

type Server

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

Server represents graphQL Server

func NewGraphQLServer

func NewGraphQLServer(conf *Configuration) Server

NewGraphQLServer create new instance of graphQL server

func (Server) GetGraphQLHandler

func (s Server) GetGraphQLHandler() http.HandlerFunc

GetGraphQLHandler returns handler for graphQL queries

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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