postfixlog

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostfixParser added in v0.0.10

type PostfixParser struct {
	StatsBin *StatsBin
}

func NewPostfixParser added in v0.0.10

func NewPostfixParser() *PostfixParser

func (*PostfixParser) Finish added in v0.0.10

func (pp *PostfixParser) Finish(duration float64)

func (*PostfixParser) Output added in v0.0.10

func (pp *PostfixParser) Output(nowTime time.Time) string

func (*PostfixParser) Parse added in v0.0.10

func (pp *PostfixParser) Parse(b []byte) error

type Stats

type Stats struct {
	Delays            float64
	ReceivingDelay    float64
	QueuingDelay      float64
	ConnectionDelay   float64
	TransmissionDelay float64
	DSN               int
}

func Parse

func Parse(d1 []byte) (*Stats, error)

Parse :

type StatsBin

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

func NewStatsBin

func NewStatsBin() *StatsBin

func (*StatsBin) Append

func (sb *StatsBin) Append(s *Stats)

func (*StatsBin) Output added in v0.0.10

func (sb *StatsBin) Output(nowTime time.Time) string

Display :

func (*StatsBin) OutputDelay added in v0.0.10

func (sb *StatsBin) OutputDelay(w io.Writer, key string, arr []float64, now uint64)

DisplayDelay :

Jump to

Keyboard shortcuts

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