content

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Cfg *blox.Config
	// contains filtered or unexported fields
}

func NewService

func NewService(bloxConfig string, referentialIntegrity bool) (*Service, error)

func (*Service) GQLHandlerFunc

func (s *Service) GQLHandlerFunc() (http.HandlerFunc, error)

GQLHandlerFunc returns a stand alone graphql handler for use in netlify/aws/azure serverless scenarios

func (*Service) GQLPlaygroundHandler

func (s *Service) GQLPlaygroundHandler() (http.Handler, error)

GQLPlaygroundHandler returns a stand alone graphql playground handler for use in netlify/aws/azure serverless scenarios

func (*Service) RenderAndSave

func (s *Service) RenderAndSave() error

func (*Service) RenderJSON

func (s *Service) RenderJSON() ([]byte, error)

func (*Service) RestHandlerFunc added in v0.7.0

func (s *Service) RestHandlerFunc() (http.HandlerFunc, error)

RestHandlerFunc returns a handler function that will render the dataset specified as the last path parameter.

Jump to

Keyboard shortcuts

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