workerservice

package
v0.0.0-...-03aceed Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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)

移动指定反向代理后端节点的游标

Jump to

Keyboard shortcuts

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