forwarder

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 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 Forwarder

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

Forwarder is the struct that manage running local applications

func NewForwarder

func NewForwarder(proxy *proxy.Proxy, 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 {
	GetForwardType() string
	Forward() error
	Stop() error
	GetReadyChannel() chan struct{}
	GetStopChannel() chan struct{}
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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