handler

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.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 VisitLogHandler

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

func (*VisitLogHandler) CollectVisitLog

func (h *VisitLogHandler) CollectVisitLog(ctx *gin.Context, req VisitLogReq) (r any, err error)

func (*VisitLogHandler) RegisterGinRoutes

func (h *VisitLogHandler) RegisterGinRoutes(engine *gin.Engine)

type VisitLogReq

type VisitLogReq struct {
	Url       string `json:"url" bind:"required"`
	Ip        string `json:"ip"`
	UserAgent string `json:"user_agent"`
	Origin    string `json:"origin"`
	Referer   string `json:"referer"`
}

Jump to

Keyboard shortcuts

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