graph

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

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

func NewHttpServer

func NewHttpServer(
	config config.Config,
	graphqlConfig generated.Config,
	openTracer opentracer.OpenTracer,
	logger zerolog.Logger,
) *HttpServer

func (*HttpServer) ActionHandler

func (server *HttpServer) ActionHandler(graphqlConfig generated.Config) gin.HandlerFunc

ActionHandler reuters a gin.handlerFunc that handling graphql action

func (*HttpServer) PlaygroundHandler

func (server *HttpServer) PlaygroundHandler(title string, endpoint string) gin.HandlerFunc

PlaygroundHandler returns gin.HandlerFunc that handling graphql playground

func (*HttpServer) Shutdown

func (server *HttpServer) Shutdown() error

func (*HttpServer) Start

func (server *HttpServer) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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