models

package
v0.0.301 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddZone = iota
	ChangeZone
	DeleteZone
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCheckObject

type EventCheckObject struct {
	Eventtype     int
	Zoneid        string
	Primaryserial int32
}

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 (s *State) GetExpectedZoneChangeTime() time.Time

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)

Jump to

Keyboard shortcuts

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