server

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package server provides the GraphQL server.

Index

Constants

View Source
const (
	// GraphqlEndpoint is the base endpoint for graphql and the endpoint for post requests to the graphql service.
	GraphqlEndpoint string = "/graphql"
	// GraphiqlEndpoint is the endpoint for the graphql user interface.
	GraphiqlEndpoint string = "/graphiql"
)

Variables

This section is empty.

Functions

func EnableGraphql

func EnableGraphql(engine *gin.Engine, consumerDB db.ConsumerDB, fetcher fetcher.ScribeFetcher, apiCache cache.Service, clients map[uint32]etherClient.EVM, parsers *types.ServerParsers, refs *types.ServerRefs, swapFilters map[string]*swap.SwapFlashLoanFilterer, config serverConfig.Config, handler metrics.Handler)

EnableGraphql enables the scribe graphql service.

Types

This section is empty.

Directories

Path Synopsis
Package graph implements the GraphQL schema and resolvers.
Package graph implements the GraphQL schema and resolvers.
interceptor
Package interceptor contains a santizier for the graphql server It santitizes strings uing MysqlRealEscapeString.
Package interceptor contains a santizier for the graphql server It santitizes strings uing MysqlRealEscapeString.
model
Package model provides the GraphQL model for the explorer service.
Package model provides the GraphQL model for the explorer service.
resolver
Package resolvers provides the GraphQL resolver for the explorer service.
Package resolvers provides the GraphQL resolver for the explorer service.

Jump to

Keyboard shortcuts

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