cherryRoute

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRouteFieldCantEmpty = errors.New("route field can not be empty")
	ErrInvalidRoute        = errors.New("invalid route")
)

Functions

This section is empty.

Types

type Route

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

Route struct

func Decode

func Decode(route string) (*Route, error)

Decode decodes the route

func New

func New(nodeType, handlerName, method string) *Route

New create a new route

func NewByName

func NewByName(routeName string) *Route

func (*Route) HandlerName

func (r *Route) HandlerName() string

func (*Route) Method

func (r *Route) Method() string

func (*Route) NodeType

func (r *Route) NodeType() string

func (*Route) String

func (r *Route) String() string

String transforms the route into a string

Jump to

Keyboard shortcuts

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