sync

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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