manager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Notifications notifications.Notifications

	Actors actors.ActorsMap
	// contains filtered or unexported fields
}

func New

func New(config *config.Data) *Manager

func (*Manager) Apply

func (m *Manager) Apply(noop bool) error

func (*Manager) Load

func (m *Manager) Load() error

func (*Manager) Save

func (m *Manager) Save() error

func (*Manager) WithCaller added in v0.3.0

func (m *Manager) WithCaller(caller api.Caller) *Manager

func (*Manager) WithRefresh added in v0.3.0

func (m *Manager) WithRefresh(refresh RefreshStrategy) *Manager

type RefreshStrategy added in v0.1.1

type RefreshStrategy int

RefreshStrategy is an enum for the refresh strategy. It implements https://pkg.go.dev/github.com/spf13/pflag#Value.

const (
	AutoRefresh RefreshStrategy = iota
	ForceRefresh
	PreventRefresh
)

func (*RefreshStrategy) Allowed added in v0.3.0

func (r *RefreshStrategy) Allowed() string

func (*RefreshStrategy) Set added in v0.3.0

func (r *RefreshStrategy) Set(value string) error

func (RefreshStrategy) String added in v0.3.0

func (r RefreshStrategy) String() string

func (RefreshStrategy) Type added in v0.3.0

func (r RefreshStrategy) Type() string

Jump to

Keyboard shortcuts

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