router

package
v0.0.0-...-cc16d5f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2015 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

type Firewall interface {
	// Get current state of block group
	GetAddressGroup(groupName string) (ips IPs, err error)
	// Set new state of block group
	SetAddressGroup(groupName string, ips IPs) error
}

A firewall can define address groups.

func NewEdgeRouterFirewall

func NewEdgeRouterFirewall(address string, privateKeyPath string) Firewall

type IPs

type IPs []net.IP

A slice of net.IPs that defines set operations.

func (IPs) AddAll

func (a IPs) AddAll(b IPs) (result IPs)

func (IPs) Append

func (a IPs) Append(ip net.IP) IPs

func (IPs) Contains

func (a IPs) Contains(ip net.IP) bool

func (IPs) Remove

func (a IPs) Remove(ip net.IP) (result IPs)

func (IPs) RemoveAll

func (a IPs) RemoveAll(b IPs) (result IPs)

Jump to

Keyboard shortcuts

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