server

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Overview

Package graphql/server provides GraphQL server for gateway

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpMetric

func NewHttpMetric() *prometheus.HistogramVec

func Start

func Start(addr string, schemaBlob []byte, resolver interface{}, poolSize int) error

Starts the server using the specified address, scheme and resolver

Types

type Tracer

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

func NewTracer

func NewTracer(metrics *prometheus.HistogramVec) *Tracer

func (*Tracer) TraceField

func (t *Tracer) TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, trace.TraceFieldFinishFunc)

func (*Tracer) TraceQuery

func (t *Tracer) TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, trace.TraceQueryFinishFunc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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