graphql

package
v0.0.0-...-939b314 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(opts ...Option) *handler.Server

Types

type Option

type Option func(*Server)

func WithResolver

func WithResolver(resolver *Resolver) Option

type Resolver

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

func NewResolver

func NewResolver(opts ...ResolverOption) *Resolver

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

type ResolverOption

type ResolverOption func(*Resolver)

func WithCameras

func WithCameras(c []config.Camera) ResolverOption

func WithDataDir

func WithDataDir(dataDir string) ResolverOption

type Server

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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