Documentation ¶ Index ¶ type Callback type Outcome func NewOutcome(success bool) *Outcome type State func NewState() *State func (s *State) Add(outcome Outcome) func (s *State) OnFailure(err error) func (s *State) OnSuccess() type Target func NewTarget(primary pihole.Client, replicas []pihole.Client) Target Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Callback ¶ added in v0.10.0 type Callback interface { OnSuccess() OnFailure(error) } type Outcome ¶ added in v0.11.0 type Outcome struct { Timestamp time.Time Success bool } func NewOutcome ¶ added in v0.11.0 func NewOutcome(success bool) *Outcome type State ¶ added in v0.11.0 type State struct { Stack []Outcome } func NewState ¶ added in v0.11.0 func NewState() *State func (*State) Add ¶ added in v0.11.0 func (s *State) Add(outcome Outcome) func (*State) OnFailure ¶ added in v0.11.0 func (s *State) OnFailure(err error) func (*State) OnSuccess ¶ added in v0.11.0 func (s *State) OnSuccess() type Target ¶ type Target interface { FullSync(sync *config.Sync) error SelectiveSync(sync *config.Sync) error } func NewTarget ¶ func NewTarget(primary pihole.Client, replicas []pihole.Client) Target Source Files ¶ View all Source files callback.gofull.goselective.gostate.gosync.go Directories ¶ Show internal Expand all Path Synopsis filter retry Click to show internal directories. Click to hide internal directories.