router

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseTypeRaw  = iota
	ResponseTypeJSON = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreRouterFactory

type CoreRouterFactory struct {
	ScopeFactory data.ScopeFactory
	Handlers     handlers.Handlers
}

func (CoreRouterFactory) CreateRouter

func (rf CoreRouterFactory) CreateRouter() *httprouter.Router

type RouterFactory

type RouterFactory interface {
	// CreateRouter creates a new httprouter with the endpoints and panic handler configured.
	CreateRouter() *httprouter.Router
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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