Documentation ¶
Index ¶
- Constants
- type EventCheckObject
- type HealthService
- type State
- func (s *State) GetActiveSecondaries() []servicediscovery.ResolvedService
- func (s *State) GetExpectedZoneChangeTime() time.Time
- func (s *State) GetExpectedZoneMap() modelzone.Zonestatemap
- func (s *State) SetActiveSecondaries(secondaries []servicediscovery.ResolvedService)
- func (s *State) SetExpectedZoneMap(expectedzones modelzone.Zonestatemap)
Constants ¶
View Source
const ( AddZone = iota ChangeZone DeleteZone )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventCheckObject ¶
type HealthService ¶
type HealthService struct { PDNSConnection modelpowerdns.PDNSconnectionobject State *State Ms *microservice.Microservice Conf *config.ServiceConfiguration }
func InitHealthServiceObject ¶
func InitHealthServiceObject(ms *microservice.Microservice, conf *config.ServiceConfiguration, state *State) *HealthService
func (*HealthService) CheckFreshnessOfState ¶
func (hs *HealthService) CheckFreshnessOfState(msgtime time.Time) error
type State ¶
type State struct {
// contains filtered or unexported fields
}
func GenerateStateObject ¶
func GenerateStateObject() *State
func (*State) GetActiveSecondaries ¶
func (s *State) GetActiveSecondaries() []servicediscovery.ResolvedService
func (*State) GetExpectedZoneChangeTime ¶
func (*State) GetExpectedZoneMap ¶
func (s *State) GetExpectedZoneMap() modelzone.Zonestatemap
func (*State) SetActiveSecondaries ¶
func (s *State) SetActiveSecondaries(secondaries []servicediscovery.ResolvedService)
func (*State) SetExpectedZoneMap ¶
func (s *State) SetExpectedZoneMap(expectedzones modelzone.Zonestatemap)
Click to show internal directories.
Click to hide internal directories.