server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Port          string
	Schema        graphql.ExecutableSchema
	AntiCSRF      bool
	Playground    bool
	Introspection bool
}

Options required to start the server.

type Server

type Server struct {
	Echo *echo.Echo
	Port string
}

func Init

func Init(options Options) Server

Initializes a new graphql server.

func (Server) Start

func (server Server) Start() error

Starts the server. Supports graceful shutdown.

Jump to

Keyboard shortcuts

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