Documentation ¶
Index ¶
- type ConfigService
- func (this *ConfigService) GetActionBackendInfo(backendId string) protocol.WorkerDataActionBackend
- func (this *ConfigService) GetActionBackendNodeInfo(backendId string) []protocol.WorkerDataActionBackendNode
- func (this *ConfigService) GetActionStaticInfo(staticId string) protocol.WorkerDataActionStatic
- func (this *ConfigService) GetCurrentRoundRobinBackendNodeId(backendId string) string
- func (this *ConfigService) GetCurrentRoundRobinBackendNodeIdWithMoveNext(backendId string) string
- func (this *ConfigService) GetSiteInfoList() []protocol.WorkerDataSite
- func (this *ConfigService) GetSiteRuleInfo(siteId string) []protocol.WorkerDataSiteRule
- func (this *ConfigService) SetRoundRobinBackendNodeList(backendId string, backendNodeList []protocol.WorkerDataActionBackendNode)
- func (this *ConfigService) SetRoundRobinBackendNodeMoveNext(backendId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func NewConfigService ¶
func NewConfigService(config *config.ConfigAppWorker) (error, *ConfigService)
func (*ConfigService) GetActionBackendInfo ¶
func (this *ConfigService) GetActionBackendInfo(backendId string) protocol.WorkerDataActionBackend
func (*ConfigService) GetActionBackendNodeInfo ¶
func (this *ConfigService) GetActionBackendNodeInfo(backendId string) []protocol.WorkerDataActionBackendNode
func (*ConfigService) GetActionStaticInfo ¶
func (this *ConfigService) GetActionStaticInfo(staticId string) protocol.WorkerDataActionStatic
func (*ConfigService) GetCurrentRoundRobinBackendNodeId ¶
func (this *ConfigService) GetCurrentRoundRobinBackendNodeId(backendId string) string
获取当前加权轮询的节点ID
func (*ConfigService) GetCurrentRoundRobinBackendNodeIdWithMoveNext ¶
func (this *ConfigService) GetCurrentRoundRobinBackendNodeIdWithMoveNext(backendId string) string
func (*ConfigService) GetSiteInfoList ¶
func (this *ConfigService) GetSiteInfoList() []protocol.WorkerDataSite
func (*ConfigService) GetSiteRuleInfo ¶
func (this *ConfigService) GetSiteRuleInfo(siteId string) []protocol.WorkerDataSiteRule
func (*ConfigService) SetRoundRobinBackendNodeList ¶
func (this *ConfigService) SetRoundRobinBackendNodeList(backendId string, backendNodeList []protocol.WorkerDataActionBackendNode)
设置加权轮询的所有节点
func (*ConfigService) SetRoundRobinBackendNodeMoveNext ¶
func (this *ConfigService) SetRoundRobinBackendNodeMoveNext(backendId string)
移动指定反向代理后端节点的游标
Click to show internal directories.
Click to hide internal directories.