web

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResponseNotFound = "the requested resource doesn't exists"

Variables

This section is empty.

Functions

func Run

func Run(server *graceful.Server, port string, router *RouterInstance)

Types

type GraphSchema

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

func NewSchema

func NewSchema(region graphql.Schema, country graphql.Schema) *GraphSchema

type RouterInstance

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

func NewRouter

func NewRouter(name string, driver neo4j.Driver, regionRepo region.Repository, countryRepo country.Repository) *RouterInstance

func (*RouterInstance) InsertSchema

func (r *RouterInstance) InsertSchema(schema *GraphSchema)

func (*RouterInstance) Router

func (r *RouterInstance) Router() *mux.Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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