oob

package
v0.0.0-...-2b22c89 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZeroTTL    = 0
	DefaultTTL = 60
	NsTTL      = 24 * 60 * 60
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context,
	g *errgroup.Group,
	db *db.DB,
	cnf *config.OOB,
	r *record.Recorder)

func SplitHostPort

func SplitHostPort(host string) (h, p string)

Types

type Dns

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

func NewDns

func NewDns(db *db.DB, cnf *config.DNS, recorder *record.Recorder) *Dns

func (*Dns) ServeDNS

func (d *Dns) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

type HTTP

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

func NewHTTP

func NewHTTP(cnf *config.DNS, recorder *record.Recorder) *HTTP

func (*HTTP) Record

func (h *HTTP) Record(c *gin.Context)

type JNDI

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

func NewJNDI

func NewJNDI(db *db.DB, cnf *config.JNDI, recorder *record.Recorder) *JNDI

func (*JNDI) Handle

func (j *JNDI) Handle(conn *net.Conn)

func (*JNDI) Run

func (j *JNDI) Run(ctx context.Context, g *errgroup.Group)

type Record

type Record struct {
	Sid        string            `json:"sid"`
	Type       RecordType        `json:"type"`
	Name       string            `json:"name"`
	RemoteAddr string            `json:"remote_addr"`
	CreatedAt  int64             `json:"created_at"`
	Detail     map[string]string `json:"detail"`
}

type RecordType

type RecordType uint
const (
	TypeDNS RecordType = iota
	TypeHTTP
	TypeLDAP
	TypeRMI
)

func (RecordType) String

func (o RecordType) String() string

Jump to

Keyboard shortcuts

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