router

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEndpointNotFound = errors.New("endpoint not found")
View Source
var ErrMalformedPath = errors.New("malformed request path")

Functions

This section is empty.

Types

type HandlerError

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

func (*HandlerError) Error

func (e *HandlerError) Error() string

func (*HandlerError) Unwrap

func (e *HandlerError) Unwrap() error

type Router

type Router interface {
	AddHandler(h interface{}, name string, methods []string)
	Handle(path string, data []byte) ([]byte, error)
}

func NewRouter

func NewRouter(cod codec.Codec, log logger.Logger) Router

Jump to

Keyboard shortcuts

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