trace

package
v0.0.0-...-da8986d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package trace extends golang.org/x/net/trace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

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

A Trace represents an active request.

func New

func New(family, title string) *Trace

New trace.

func (*Trace) Answer

func (t *Trace) Answer(m *dns.Msg)

Answer adds the given DNS answer to the trace.

func (*Trace) Error

func (t *Trace) Error(err error) error

Error marks the trace as having seen an error, and also logs it to the trace's log.

func (*Trace) Errorf

func (t *Trace) Errorf(format string, a ...interface{}) error

Errorf adds this message to the trace's log, with an error level.

func (*Trace) Finish

func (t *Trace) Finish()

Finish the trace. It should not be changed after this is called.

func (*Trace) Printf

func (t *Trace) Printf(format string, a ...interface{})

Printf adds this message to the trace's log.

func (*Trace) Question

func (t *Trace) Question(qs []dns.Question)

Question adds the given question to the trace.

Jump to

Keyboard shortcuts

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