mux

package
v0.0.0-...-ab49a64 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMux

type BaseMux struct {
	DbConn  *sql.DB
	Session *session.Session
}

func (*BaseMux) Mux

func (bm *BaseMux) Mux(ctx *fasthttp.RequestCtx, setting *map[string]string, routes *map[string]Route, urlDictio *map[string]map[string]string)

type Controller

type Controller struct {
	Method  string
	Querys  map[string]string
	Handler func(*fasthttp.RequestCtx, *session.Session)
}

type Route

type Route struct {
	Ctrl Controller
	Sons map[string]Route
}

Jump to

Keyboard shortcuts

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