subnet

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrIPOutOfCIDRRange is returned when an IP is incremented but out of CIDR range
	ErrIPOutOfCIDRRange = cerr.Error("ip out of CIDR range")
	// ErrNilIPNet is thrown when an IPNet pointer is nil
	ErrNilIPNet = cerr.Error("ip net is nil")
	// ErrNilPort is thrown when a port pointer is nil
	ErrNilPort = cerr.Error("port is nil")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Props

type Props struct {
	CTX  context.Context
	Conf config.Config
}

Props is passed to new to build a new subnet

type Subnet

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

Subnet implements the subment methods

func New

func New(props *Props) (*Subnet, error)

New returns a subnet

func (*Subnet) Addresses

func (s *Subnet) Addresses() []string

Addresses returns the host addresses

func (*Subnet) RPCAddresses

func (s *Subnet) RPCAddresses() []string

RPCAddresses returns the host rpc addresses

func (*Subnet) Start

func (s *Subnet) Start(started chan struct{}) error

Start begins the subnet

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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