阶段性提交

This commit is contained in:
刘祥超
2021-06-17 21:18:05 +08:00
parent 04e567b6d8
commit 0226b4aa98
15 changed files with 1590 additions and 130 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package serverconfigs
import "net/http"
// HTTPAuthMethodInterface HTTP认证接口定义
type HTTPAuthMethodInterface interface {
// Init 初始化
Init(params map[string]interface{}) error
// Filter 过滤
Filter(req *http.Request, subReqFunc func(subReq *http.Request) (status int, err error), formatter func(string) string) (bool, error)
}