router

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

KeyValue .

type Router

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

Router .

func New

func New() *Router

New returns a new Router instance.

func (*Router) Add

func (r *Router) Add(name string, kvs []*KeyValue, target interface{}) error

Add .

func (*Router) Find

func (r *Router) Find(name string, kvs map[string]string) interface{}

Find lookup target registered for name and key/values.

func (*Router) PrintTree

func (r *Router) PrintTree(verbose bool)

PrintTree .

func (*Router) SprintTree

func (r *Router) SprintTree(verbose bool) string

SprintTree .

Jump to

Keyboard shortcuts

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