handler

package
v0.0.0-...-0886e28 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpInfoHandler

type IpInfoHandler struct {
	Logger  utils.CustomJsonLogger
	Service service.IpInfoService
}

func NewIpInfoHandler

func NewIpInfoHandler(logger utils.CustomJsonLogger, svc service.IpInfoService) IpInfoHandler

func (*IpInfoHandler) GetHeaderByName

func (h *IpInfoHandler) GetHeaderByName(w http.ResponseWriter, r *http.Request)

func (*IpInfoHandler) GetIpInfo

func (h *IpInfoHandler) GetIpInfo(w http.ResponseWriter, r *http.Request)

func (*IpInfoHandler) GetIpInfoHtml

func (h *IpInfoHandler) GetIpInfoHtml(w http.ResponseWriter, r *http.Request)

func (*IpInfoHandler) Index

func (h *IpInfoHandler) Index(w http.ResponseWriter, r *http.Request)

type Middlware

type Middlware struct {
	Logger utils.CustomJsonLogger
}

func NewMiddleware

func NewMiddleware(logger utils.CustomJsonLogger) Middlware

func (*Middlware) AddRequestId

func (m *Middlware) AddRequestId(next http.Handler) http.Handler

func (*Middlware) RecoverPanic

func (m *Middlware) RecoverPanic(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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