core

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReplace

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

func NewDist

func NewDist(path string) *AutoReplace

NewDist 初始化规则表结构

func (*AutoReplace) AddRuleFunc added in v1.3.0

func (a *AutoReplace) AddRuleFunc(r route.Func)

func (*AutoReplace) AddRules

func (a *AutoReplace) AddRules(r ...route.Router)

AddRules 增加路由获取接口

func (*AutoReplace) CustomRuleFunc

func (a *AutoReplace) CustomRuleFunc(f route.Func)

CustomRuleFunc 添加自定义替换函数 首先采用自定义替换函数。

func (*AutoReplace) Load added in v1.1.0

func (a *AutoReplace) Load(filer file.Filer) gin.HandlerFunc

Load 加载静态文件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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