state

package
v0.0.0-...-61b053f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// contains filtered or unexported fields
}

func New

func New(statusApplier StatusApplier,
	settings settings.DNS,
	updateTicker chan<- struct{},
) *State

func (*State) GetSettings

func (s *State) GetSettings() (settings settings.DNS)

func (*State) SetSettings

func (s *State) SetSettings(ctx context.Context, settings settings.DNS) (
	outcome string,
)

type StatusApplier

type StatusApplier interface {
	ApplyStatus(ctx context.Context, status models.LoopStatus) (
		outcome string, err error)
}

Jump to

Keyboard shortcuts

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