postfix

package
v0.0.0-...-4be01c1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposedPublisher

type ComposedPublisher []Publisher

func (ComposedPublisher) Publish

func (c ComposedPublisher) Publish(r Record)

type Hasher

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

NOTE: Hasher is not thread safe!

func NewHasher

func NewHasher() *Hasher

type Publisher

type Publisher interface {
	Publish(Record)
}

type Record

type Record struct {
	Time     time.Time
	Header   parser.Header
	Location RecordLocation
	Payload  parser.Payload
	Line     string
	Sum      Sum
}

type RecordLocation

type RecordLocation struct {
	Line     uint64
	Filename string
}

type Sum

type Sum int64

Sum is the checksum for a record

func ComputeChecksum

func ComputeChecksum(h *Hasher, line string) Sum

type SumPair

type SumPair struct {
	Time time.Time
	Sum  *Sum
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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