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, vpn settings.VPN) *State

func (*State) GetSettings

func (s *State) GetSettings() (vpn settings.VPN)

func (*State) SetSettings

func (s *State) SetSettings(ctx context.Context, vpn settings.VPN) (
	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