access

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package access 记录接口访问记录

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l *web.Logger, format string) web.Middleware

New 声明 Access 中间件

l 表示记录输出的通道; format 表示记录的格式,接受三个参数,分别为状态码、请求方法和请求地址, 默认使用 "[%d] %s\t%s\n",可以使用 fmt.Sprintf 的顺序标记作调整;

Types

This section is empty.

Jump to

Keyboard shortcuts

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