urihandler

package
v0.0.0-...-3e22d2e Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URIHandler

type URIHandler struct {
	URIList *ecombase.LinkedTree
}

URIHandler - Struct managing uri's registered to the system

func (*URIHandler) AddURI

func (uh *URIHandler) AddURI(uri string, handler func(ctx *gin.Context) (bool, error))

AddURI - Add a new uri and a handler for it

func (*URIHandler) HandleURI

func (uh *URIHandler) HandleURI(uri string, c *gin.Context) (bool, error)

HandleURI - Find if threr is a registered uri that matches the argument and call it

func (*URIHandler) Init

func (uh *URIHandler) Init()

Init - Initialize the URIHandler

Jump to

Keyboard shortcuts

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