reverseproxy

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteReverseProxyRuleListlice

func DeleteReverseProxyRuleListlice(a []reverseproxyconf.ReverseProxyRule, deleteIndex int) []reverseproxyconf.ReverseProxyRule

func EnableReverseProxyRuleByKey

func EnableReverseProxyRuleByKey(ruleKey string, enable bool) error

func EnableReverseProxySubRule

func EnableReverseProxySubRule(ruleKey, proxyKey string, enable bool) error

func EnableRuleByKey

func EnableRuleByKey(key string, enable bool) error

func GetAccessLogs

func GetAccessLogs(ruleKey, proxyKey string, pageSize, page int) (int, []any)

func GetProxyRuleListInfo

func GetProxyRuleListInfo() *[]RuleInfo

func GetReverseProxyRuleByKey

func GetReverseProxyRuleByKey(ruleKey string) *reverseproxyconf.ReverseProxyRule

func GetReverseProxyRuleList

func GetReverseProxyRuleList() []*reverseproxyconf.ReverseProxyRule

func GetSubRuleByKey

func GetSubRuleByKey(ruleKey, proxyKey string) *reverseproxyconf.SubReverProxyRule

func InitReverseProxyServer

func InitReverseProxyServer()

func ReverseProxyRuleListAdd

func ReverseProxyRuleListAdd(rule *reverseproxyconf.ReverseProxyRule) error

func ReverseProxyRuleListDelete

func ReverseProxyRuleListDelete(ruleKey string) error

func TidyReverseProxyCache

func TidyReverseProxyCache()

TidyReverseProxyCache 整理反向代理日志缓存

func UpdateReverseProxyRulet

func UpdateReverseProxyRulet(rule reverseproxyconf.ReverseProxyRule) error

Types

type RuleInfo

type RuleInfo struct {
	reverseproxyconf.ReverseProxyRule
	AccessLogs map[string][]any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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