proxyutils

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 21 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServerMenu

func AddServerMenu(actionWrapper actions.ActionWrapper)

添加服务器菜单

func ApplyChartChanges added in v0.1.2

func ApplyChartChanges() error

应用图表更新

func CheckChartChanges added in v0.1.2

func CheckChartChanges() bool

检查图表是否有更新

func ConvertReceiversToMaps added in v0.1.8

func ConvertReceiversToMaps(receivers []*notices.NoticeReceiver) (result []maps.Map)

将Receiver转换为Map

func DefaultRequestVariables added in v0.1.6

func DefaultRequestVariables() []maps.Map

默认的请求变量列表

func FinishChange

func FinishChange()

func FormatAccessLog added in v0.1.5

func FormatAccessLog(accessLogs []*teaconfigs.AccessLogConfig) []maps.Map

格式化访问日志配置

func NotifyChange

func NotifyChange()

func NotifyProxyBackendDownMessage added in v0.1.8

func NotifyProxyBackendDownMessage(event *teaconfigs.BackendDownEvent) error

发送一个后端下线通知

func NotifyProxyBackendUpMessage added in v0.1.8

func NotifyProxyBackendUpMessage(event *teaconfigs.BackendUpEvent) error

发送一个后端上线通知

func NotifyServer added in v0.1.8

func NotifyServer(server *teaconfigs.ServerConfig, level notices.NoticeLevel, subject string, message string)

推送代理服务相关通知

func Observe

func Observe(f func())

func ParseAccessLogForm added in v0.1.5

func ParseAccessLogForm(req *http.Request) (result []*teaconfigs.AccessLogConfig)

从请求中获取访问日志信息

func ParseRequestConds added in v0.1.8

func ParseRequestConds(req *http.Request, prefix string) (conds []*shared.RequestCond, breakCond *shared.RequestCond, err error)

从请求中分析请求匹配条件

func ProxyIsChanged

func ProxyIsChanged() bool

func ReloadServerStats

func ReloadServerStats(serverId string)

刷新服务统计

func WrapServerData added in v0.1.3

func WrapServerData(server *teaconfigs.ServerConfig) maps.Map

包装Server相关数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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