muxlist

package
v0.0.0-...-4ca8788 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_METHODS = iota
	REQUEST_URI
	ROUTE_NAME
	HANDLER_NAME
)

Constants that map to a key in a Result. This is provided to be used as "helpers".

Variables

This section is empty.

Functions

func GetHumanReadableNameForHandler

func GetHumanReadableNameForHandler(h http.Handler) string

Returns a human readable name for a http Handler

Types

type GorillaMuxLister

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

func NewGorillaMuxLister

func NewGorillaMuxLister(r *mux.Router) *GorillaMuxLister

func (*GorillaMuxLister) Extract

func (m *GorillaMuxLister) Extract() ResultSet

func (*GorillaMuxLister) List

func (m *GorillaMuxLister) List() (ret string)

type Result

type Result map[int]string

Represents information for a single route

type ResultSet

type ResultSet []Result

ResultSet contains all available information for a multiplexer

Jump to

Keyboard shortcuts

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