router

package
v0.0.0-...-8bf5510 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router interface {
	Handle(path string, handler http.Handler)
}

Router is the object we can use to connect our http.Handlers to the application's router

type RoutesConfig

type RoutesConfig struct {
	GraphQL           string `default:"/q/query" valid:"pathdis" yaml:"graphql,omitempty"`
	GraphQLPlayground string `default:"/q"       valid:"pathdis" yaml:"graphqlplayground,omitempty"`
}

func (*RoutesConfig) Route

func (rc *RoutesConfig) Route(router Router) error

Jump to

Keyboard shortcuts

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