host

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleHost

type HandleHost func(host, ip string, isComment bool) error

type Parser

type Parser interface {
	io.Closer
	Remove(tmp ReadWriteNameCloser, host string) error
	List(handle HandleHost) error
	Add(host, ip string) error
}

func NewParser

func NewParser(r ReadWriteNameCloser) Parser

type ReadWriteNameCloser

type ReadWriteNameCloser interface {
	io.ReadWriteCloser
	io.Seeker
	Name() string
	Truncate(int64) error
}

type WriteNameCloser

type WriteNameCloser interface {
	io.WriteCloser
	Name() string
}

Jump to

Keyboard shortcuts

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