service

package
v0.0.0-...-66aed2d Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	Active bool
	Ctx    context.Context
	Fwd    *settings.Forward
	// contains filtered or unexported fields
}

func (*Forward) Activate

func (f *Forward) Activate() error

func (*Forward) Deactivate

func (f *Forward) Deactivate() error

type PortForwarding

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

func NewPortForwarding

func NewPortForwarding(s *settings.Settings, logger hclog.Logger) (*PortForwarding, error)

func (*PortForwarding) Add

func (p *PortForwarding) Add(fwd *settings.Forward) error

func (*PortForwarding) Fwds

func (p *PortForwarding) Fwds() []*Forward

func (*PortForwarding) Load

func (p *PortForwarding) Load() error

Loads all known forwards from the persisted settings

func (*PortForwarding) Remove

func (p *PortForwarding) Remove(fwd *settings.Forward) error

func (*PortForwarding) Start

func (p *PortForwarding) Start() error

func (*PortForwarding) Stop

func (p *PortForwarding) Stop() error

Jump to

Keyboard shortcuts

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