internal

package
v0.0.0-...-fb1cdef Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerNodes

type HandlerNodes []HanlderNode

type HanlderNode

type HanlderNode interface {
	Add(context.Handler, ...string)
	Handle(string, *context.Context) bool
	Equal(HanlderNode) bool
}

func NewHandlerNode

func NewHandlerNode(parameter string, handler context.Handler) HanlderNode

type RegexpHandler

type RegexpHandler struct {
	context.Handler
	// contains filtered or unexported fields
}

func NewRegexpHandler

func NewRegexpHandler(name string, handler context.Handler) *RegexpHandler

func (*RegexpHandler) Add

func (r *RegexpHandler) Add(handler context.Handler, parts ...string)

func (*RegexpHandler) Equal

func (r *RegexpHandler) Equal(n HanlderNode) bool

func (*RegexpHandler) Handle

func (r *RegexpHandler) Handle(path string, ctx *context.Context) bool

type StringHandler

type StringHandler struct {
	context.Handler
	// contains filtered or unexported fields
}

func NewStringHandler

func NewStringHandler(pattern string, handler context.Handler) *StringHandler

func (*StringHandler) Add

func (s *StringHandler) Add(handler context.Handler, parts ...string)

func (*StringHandler) Equal

func (s *StringHandler) Equal(n HanlderNode) bool

func (*StringHandler) Handle

func (s *StringHandler) Handle(path string, ctx *context.Context) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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