app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(cfg *AppConfig) *App

func (*App) Run

func (app *App) Run(cfgCh chan *AppConfig, doneCh chan struct{})

func (*App) RunOnce

func (app *App) RunOnce()

type AppConfig

type AppConfig struct {
	ConfigCheckInterval time.Duration
	IpChainName         string
	RestrictedPorts     []string
	AllowedNetworks     []string
}

func NewAppConfig

func NewAppConfig(chainName string, ports, nets []string) *AppConfig

Jump to

Keyboard shortcuts

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