whois

package
v0.0.0-...-d56d19a Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UPPER = iota
	LOWER
	ROUTE
	ROUTE6
)
View Source
const VERSION = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	ServerInfo string
	TypeSchema string
	Types      map[string]bool
	Args       []string
}

type Object

type Object map[int]interface{}

type Query

type Query struct {
	Objects []Object
	Flags   *Flags
}

type Registry

type Registry struct {
	DataPath         string
	Header           string
	DNSTopLevel      string
	RegistryTopLevel string
	// contains filtered or unexported fields
}

func New

func New(DataPath string, Header string, DNSTopLevel string, RegistryTopLevel string) Registry

func (*Registry) HandleQuery

func (r *Registry) HandleQuery(conn *net.TCPConn)

type Type

type Type struct {
	Name    string
	Pattern *regexp.Regexp
	Kind    int
}

Jump to

Keyboard shortcuts

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