graphql

package
v0.0.0-...-d1a2b61 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeoIn

func GeoIn() *graphql.InputObject

func GeoObj

func GeoObj() *graphql.Object

func NewHandler

func NewHandler(configs ...Configurer) (http.Handler, error)

Types

type Configurer

type Configurer interface {
	Queries() graphql.Fields
	Mutations() graphql.Fields
}

type HotelHandler

type HotelHandler struct {
	Job covidtracker.HotelJob
	DAL covidtracker.HotelDAL
}

func (*HotelHandler) Mutations

func (h *HotelHandler) Mutations() graphql.Fields

func (*HotelHandler) Queries

func (h *HotelHandler) Queries() graphql.Fields

func (*HotelHandler) Search

func (h *HotelHandler) Search() *graphql.Field

type HotelInput

type HotelInput struct {
	ID       string    `json:"id"`
	Arrival  time.Time `json:"arrival"`
	NbNights int       `json:"nbNights"`
}

type PingHandler

type PingHandler struct{}

func (*PingHandler) Mutations

func (h *PingHandler) Mutations() graphql.Fields

func (*PingHandler) Ping

func (h *PingHandler) Ping() *graphql.Field

func (*PingHandler) Queries

func (h *PingHandler) Queries() graphql.Fields

type RiskHandler

type RiskHandler struct {
	Job covidtracker.RiskJob
	DAL covidtracker.RiskDAL
}

func (*RiskHandler) Estimate

func (h *RiskHandler) Estimate() *graphql.Field

func (*RiskHandler) Mutations

func (h *RiskHandler) Mutations() graphql.Fields

func (*RiskHandler) Queries

func (h *RiskHandler) Queries() graphql.Fields

Jump to

Keyboard shortcuts

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