hostlist

package
v0.0.0-...-39d52a8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Access    sync.Mutex
	Name      string
	Domains   []string
	IPs       []net.IP
	Glue      []net.IP
	IsTldHost bool
}

func (*Host) AddDomain

func (self *Host) AddDomain(domain string)

func (*Host) AddGlue

func (self *Host) AddGlue(glue net.IP)

func (*Host) AddIP

func (self *Host) AddIP(ip net.IP)

func (*Host) GetName

func (self *Host) GetName() string

type Hostlist

type Hostlist struct {
	Access sync.Mutex
	List   map[string]*Host
	Origin string
}

func (*Hostlist) AddHost

func (self *Hostlist) AddHost(hostname string) *Host

func (*Hostlist) GetAllHostnames

func (self *Hostlist) GetAllHostnames() []string

func (*Hostlist) GetHost

func (self *Hostlist) GetHost(hostname string) *Host

func (*Hostlist) Init

func (self *Hostlist) Init(origin string)

Jump to

Keyboard shortcuts

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