Documentation ¶
Index ¶
- type DummyWorker
- type HealthcheckChecker
- func (healthcheckChecker *HealthcheckChecker) IsHttpAdvancedCheckOk(healthcheckType string, healthcheckAddress string, nearFieldsMode bool, ...) bool
- func (healthcheckChecker *HealthcheckChecker) IsHttpCheckOk(healthcheckAddress string, uri string, validResponseCodes []int64, ...) bool
- func (healthcheckChecker *HealthcheckChecker) IsHttpsCheckOk(healthcheckAddress string, uri string, validResponseCodes []int64, ...) bool
- func (healthcheckChecker *HealthcheckChecker) IsIcmpCheckOk(ipS string, timeout time.Duration, fwmark int, id string) bool
- func (healthcheckChecker *HealthcheckChecker) IsTcpCheckOk(healthcheckAddress string, timeout time.Duration, fwmark int, id string) bool
- type IDGenerator
- type IpRuleWorker
- type IpvsWorker
- func (ipvsWorker *IpvsWorker) AddIPVSApplicationServersForService(vip string, port uint16, routingType uint32, balanceType string, ...) error
- func (ipvsWorker *IpvsWorker) GetIPVSRuntime(id string) (map[string]map[string]uint16, error)
- func (ipvsWorker *IpvsWorker) NewIPVSService(vip string, port uint16, routingType uint32, balanceType string, ...) error
- func (ipvsWorker *IpvsWorker) RemoveIPVSApplicationServersFromService(vip string, port uint16, routingType uint32, balanceType string, ...) error
- func (ipvsWorker *IpvsWorker) RemoveIPVSService(vip string, port uint16, protocol uint16, id string) error
- type MemoryWorker
- func (memoryWorker *MemoryWorker) AddService(serviceInfo *domain.ServiceInfo) error
- func (memoryWorker *MemoryWorker) AddTunnelForApplicationServer(appSrvIP string) bool
- func (memoryWorker *MemoryWorker) GetService(serviceAddress string) (*domain.ServiceInfo, error)
- func (memoryWorker *MemoryWorker) GetServices() map[string]*domain.ServiceInfo
- func (memoryWorker *MemoryWorker) RemoveService(serviceInfo *domain.ServiceInfo) error
- func (memoryWorker *MemoryWorker) RemoveTunnelForApplicationServer(appSrvIP string) bool
- func (memoryWorker *MemoryWorker) UpdateService(serviceInfo *domain.ServiceInfo) error
- type RouteWorker
- type TunnelWorker
- type UUIDGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyWorker ¶
type DummyWorker struct {
// contains filtered or unexported fields
}
func NewDummyWorker ¶
func (*DummyWorker) AddToDummy ¶
func (dummyWorker *DummyWorker) AddToDummy(ip string, id string) error
func (*DummyWorker) GetDummyRuntimeConfig ¶
func (dummyWorker *DummyWorker) GetDummyRuntimeConfig(id string) (map[string]struct{}, error)
func (*DummyWorker) RemoveFromDummy ¶
func (dummyWorker *DummyWorker) RemoveFromDummy(ip string, id string) error
type HealthcheckChecker ¶
type HealthcheckChecker struct { Conn *grpc.ClientConn // contains filtered or unexported fields }
func NewHealthcheckChecker ¶
func (*HealthcheckChecker) IsHttpAdvancedCheckOk ¶
func (*HealthcheckChecker) IsHttpCheckOk ¶
func (*HealthcheckChecker) IsHttpsCheckOk ¶
func (*HealthcheckChecker) IsIcmpCheckOk ¶
func (*HealthcheckChecker) IsTcpCheckOk ¶
type IDGenerator ¶
type IDGenerator struct { }
IDGenerator ...
func (*IDGenerator) NewID ¶
func (idGenerator *IDGenerator) NewID() string
NewID generate new ID in domain id model/struct
type IpRuleWorker ¶
type IpRuleWorker struct {
// contains filtered or unexported fields
}
func NewIpRuleWorker ¶
func (*IpRuleWorker) AddIPRule ¶
func (ipRuleWorker *IpRuleWorker) AddIPRule(hcTunDestIP string, id string) error
func (*IpRuleWorker) GetIPRulerRuntime ¶
func (ipRuleWorker *IpRuleWorker) GetIPRulerRuntime(id string) (map[int]struct{}, error)
GetIPRulerRuntime ...
func (*IpRuleWorker) RemoveIPRule ¶
func (ipRuleWorker *IpRuleWorker) RemoveIPRule(hcTunDestIP string, id string) error
type IpvsWorker ¶
type IpvsWorker struct {
// contains filtered or unexported fields
}
func NewIpvsWorker ¶
func (*IpvsWorker) AddIPVSApplicationServersForService ¶
func (*IpvsWorker) GetIPVSRuntime ¶
func (*IpvsWorker) NewIPVSService ¶
func (*IpvsWorker) RemoveIPVSApplicationServersFromService ¶
func (*IpvsWorker) RemoveIPVSService ¶
type MemoryWorker ¶
type MemoryWorker struct { sync.Mutex Services map[string]*domain.ServiceInfo ApplicationServersTunnelInfo map[string]int }
MemoryWorker ...
func (*MemoryWorker) AddService ¶
func (memoryWorker *MemoryWorker) AddService(serviceInfo *domain.ServiceInfo) error
func (*MemoryWorker) AddTunnelForApplicationServer ¶
func (memoryWorker *MemoryWorker) AddTunnelForApplicationServer(appSrvIP string) bool
func (*MemoryWorker) GetService ¶
func (memoryWorker *MemoryWorker) GetService(serviceAddress string) (*domain.ServiceInfo, error)
func (*MemoryWorker) GetServices ¶
func (memoryWorker *MemoryWorker) GetServices() map[string]*domain.ServiceInfo
func (*MemoryWorker) RemoveService ¶
func (memoryWorker *MemoryWorker) RemoveService(serviceInfo *domain.ServiceInfo) error
func (*MemoryWorker) RemoveTunnelForApplicationServer ¶
func (memoryWorker *MemoryWorker) RemoveTunnelForApplicationServer(appSrvIP string) bool
func (*MemoryWorker) UpdateService ¶
func (memoryWorker *MemoryWorker) UpdateService(serviceInfo *domain.ServiceInfo) error
type RouteWorker ¶
type RouteWorker struct {
// contains filtered or unexported fields
}
func NewRouteWorker ¶
func (*RouteWorker) AddRoute ¶
func (routeWorker *RouteWorker) AddRoute(hcDestIP string, hcTunDestIP string, id string) error
func (*RouteWorker) GetRouteRuntimeConfig ¶
func (routeWorker *RouteWorker) GetRouteRuntimeConfig(id string) ([]string, error)
func (*RouteWorker) RemoveRoute ¶
func (routeWorker *RouteWorker) RemoveRoute(hcDestIP string, hcTunDestIP string, id string) error
type TunnelWorker ¶
type TunnelWorker struct {
// contains filtered or unexported fields
}
func NewTunnelWorker ¶
func (*TunnelWorker) AddTunnel ¶
func (tunnelWorker *TunnelWorker) AddTunnel(hcTunDestIP string, id string) error
func (*TunnelWorker) GetTunnelRuntime ¶
func (tunnelWorker *TunnelWorker) GetTunnelRuntime(id string) (map[string]struct{}, error)
func (*TunnelWorker) RemoveTunnel ¶
func (tunnelWorker *TunnelWorker) RemoveTunnel(hcTunDestIP string, id string) error
type UUIDGenerator ¶
type UUIDGenerator struct { }
UUIDGenerator ...
func (*UUIDGenerator) NewID ¶
func (uuidGenerator *UUIDGenerator) NewID() string
NewID generate new ID in domain id model/struct
Click to show internal directories.
Click to hide internal directories.