forwarder

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

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

Forwarder is the struct that manage running local applications

func NewForwarder

func NewForwarder(view ui.ViewInterface, proxy proxy.ProxyInterface, project *config.Project) *Forwarder

NewForwarder instancites a Forwarder struct from configuration data

func (*Forwarder) ForwardAll

func (f *Forwarder) ForwardAll()

ForwardAll runs all applications forwarders in separated goroutines

func (*Forwarder) Stop added in v0.0.5

func (f *Forwarder) Stop()

Stop stops all currently active forwarders

type ForwarderInterface

type ForwarderInterface interface {
	ForwardAll()
	Stop()
}

ForwarderInterface represents all kinds of forwarders (Kubernetes, others...)

type ForwarderTypeInterface added in v0.0.8

type ForwarderTypeInterface interface {
	GetForwardType() string
	Forward() error
	Stop() error
	GetReadyChannel() chan struct{}
	GetStopChannel() chan struct{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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