route

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 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 PathVariableReceiver

type PathVariableReceiver interface {
	SetPathVar(name, value string)
}

type Registry

type Registry[T any] struct {
	// contains filtered or unexported fields
}

func (*Registry[T]) Init

func (r *Registry[T]) Init() *Registry[T]

func (*Registry[T]) Mount

func (r *Registry[T]) Mount(name string, root string, target T) (rs string, err error)

func (*Registry[T]) Resolve

func (r *Registry[T]) Resolve(method, path string, pvr PathVariableReceiver) (target T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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