controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controler

type Controler struct {
	LogPanic   logx.FieldLogger
	LogServer  logx.FieldLogger
	LogRequest logx.FieldLogger
	Setting    *setting.Setting
}

func (*Controler) File

func (c *Controler) File(file string, w http.ResponseWriter, r *http.Request)

func (*Controler) LogReq

func (c *Controler) LogReq(calback func(log logx.FieldLogger))

func (*Controler) LogSer

func (c *Controler) LogSer(calback func(log logx.FieldLogger))

func (*Controler) Panicf

func (c *Controler) Panicf(format string, args ...any)

func (*Controler) ServeHTTP

func (c *Controler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Controler) Sett

func (c *Controler) Sett() *setting.Setting

Jump to

Keyboard shortcuts

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