Documentation ¶
Index ¶
- func AddServerMenu(actionWrapper actions.ActionWrapper, isIndex bool)
- func AddServerToMenu(server *teaconfigs.ServerConfig, action *actions.ActionObject, ...)
- 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 AddServerToMenu ¶
func AddServerToMenu(server *teaconfigs.ServerConfig, action *actions.ActionObject, menu *utils.Menu, serverId string)
将Server添加到菜单上
func ConvertReceiversToMaps ¶
func ConvertReceiversToMaps(receivers []*notices.NoticeReceiver) (result []maps.Map)
将Receiver转换为Map
func FinishChange ¶
func FinishChange()
func FormatAccessLog ¶
func FormatAccessLog(accessLogs []*teaconfigs.AccessLogConfig) []maps.Map
格式化访问日志配置
func NotifyChange ¶
func NotifyChange()
func NotifyProxyBackendDownMessage ¶
func NotifyProxyBackendDownMessage(event *teaconfigs.BackendDownEvent) error
发送一个后端下线通知
func NotifyProxyBackendUpMessage ¶
func NotifyProxyBackendUpMessage(event *teaconfigs.BackendUpEvent) error
发送一个后端上线通知
func NotifyServer ¶
func NotifyServer(server *teaconfigs.ServerConfig, level notices.NoticeLevel, subject string, message string)
推送代理服务相关通知
func ParseAccessLogForm ¶
func ParseAccessLogForm(req *http.Request) (result []*teaconfigs.AccessLogConfig)
从请求中获取访问日志信息
func ParseRequestConds ¶
func ParseRequestConds(req *http.Request, prefix string) (conds []*shared.RequestCond, breakCond *shared.RequestCond, err error)
从请求中分析请求匹配条件
func ProxyIsChanged ¶
func ProxyIsChanged() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.