Documentation
¶
Index ¶
- func AddServerMenu(actionWrapper actions.ActionWrapper)
- func ApplyChartChanges() error
- func CheckChartChanges() bool
- func ConvertReceiversToMaps(receivers []*notices.NoticeReceiver) (result []maps.Map)
- func DefaultRequestVariables() []maps.Map
- func FinishChange()
- func FormatAccessLog(accessLogs []*teaconfigs.AccessLogConfig) []maps.Map
- func NotifyChange()
- func NotifyProxyBackendDownMessage(event *teaconfigs.BackendDownEvent) error
- func NotifyProxyBackendUpMessage(event *teaconfigs.BackendUpEvent) error
- func NotifyServer(server *teaconfigs.ServerConfig, level notices.NoticeLevel, subject string, ...)
- func Observe(f func())
- func ParseAccessLogForm(req *http.Request) (result []*teaconfigs.AccessLogConfig)
- func ParseRequestConds(req *http.Request, prefix string) (conds []*shared.RequestCond, breakCond *shared.RequestCond, err error)
- func ProxyIsChanged() bool
- func ReloadServerStats(serverId string)
- func WrapServerData(server *teaconfigs.ServerConfig) maps.Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertReceiversToMaps ¶ added in v0.1.8
func ConvertReceiversToMaps(receivers []*notices.NoticeReceiver) (result []maps.Map)
将Receiver转换为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 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 WrapServerData ¶ added in v0.1.3
func WrapServerData(server *teaconfigs.ServerConfig) maps.Map
包装Server相关数据
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.