connection

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(ctx context.Context, dir string, newEngine engine.NewFunc, probe engine.ProbeFunc, logger *log.Logger) *Service

func (*Service) Apply added in v1.2.0

func (s *Service) Apply(ctx context.Context, n domain.Node, ref domain.NodeRef, settings domain.Settings, tun bool) error

func (*Service) Connect

func (s *Service) Connect(ctx context.Context, n domain.Node, ref domain.NodeRef, settings domain.Settings, tun bool) error

func (*Service) Disconnect

func (s *Service) Disconnect(ctx context.Context) error

func (*Service) ForgetIfRemoved

func (s *Service) ForgetIfRemoved(subID string) error

func (*Service) Probe

func (s *Service) Probe(ctx context.Context, nodes []domain.Node, settings domain.Settings, onResult func(string, engine.Result)) (map[string]engine.Result, error)

func (*Service) RestartRequested added in v1.1.3

func (s *Service) RestartRequested() <-chan struct{}

func (*Service) Restore

func (s *Service) Restore(n domain.Node, ref domain.NodeRef, settings domain.Settings, tun bool)

func (*Service) Shutdown

func (s *Service) Shutdown()

func (*Service) Status

func (s *Service) Status() ipc.Status

Jump to

Keyboard shortcuts

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