traceinfo

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Event() stats.Event
	Status() stats.Status
	Info() string
	Time() time.Time
	IsNil() bool
}

Event is the abstraction of an event happened at a specific time.

type HTTPStats

type HTTPStats interface {
	Record(event stats.Event, status stats.Status, info string)
	GetEvent(event stats.Event) Event
	SendSize() int
	SetSendSize(size int)
	RecvSize() int
	SetRecvSize(size int)
	Error() error
	SetError(err error)
	Panicked() (bool, interface{})
	SetPanicked(x interface{})
	Level() stats.Level
	SetLevel(level stats.Level)
	Reset()
}

HTTPStats is used to collect statistics about the HTTP.

func NewHTTPStats

func NewHTTPStats() HTTPStats

NewHTTPStats creates a new HTTPStats.

type TraceInfo

type TraceInfo interface {
	Stats() HTTPStats
	Reset()
}

TraceInfo contains the trace message in Hertz.

func NewTraceInfo

func NewTraceInfo() TraceInfo

NewTraceInfo creates a new traceInfoImpl using the given information.

Jump to

Keyboard shortcuts

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