route

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

Group is the route group struct

func NewGroup

func NewGroup(mux *http.ServeMux) *Group

NewGroup creates a new group

func (*Group) HandleFunc

func (g *Group) HandleFunc(path string, handler http.HandlerFunc)

HandleFunc registers a new route with a path and a handler function

func (*Group) Mux

func (g *Group) Mux() *http.ServeMux

Mux returns the ServeMux

func (*Group) RegisterGroup

func (g *Group) RegisterGroup(path string, handler http.Handler)

RegisterGroup registers a new group with a path and a handler function

Jump to

Keyboard shortcuts

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