private

package
v0.0.0-...-9791e59 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeConfiguration = "application/x-configuration"
	ThresholdRequest         = "x-threshold-request"
	ThresholdResponse        = "x-threshold-response"
	ThresholdTimeoutName     = "timeout"

	TrafficEgress = "egress"
)

Variables

This section is empty.

Functions

func NewConfigurationMessage

func NewConfigurationMessage(cfg *Configuration) *messaging.Message

Types

type Configuration

type Configuration struct {
	Timeout  time.Duration
	Until    time.Duration
	Log      LogFunc
	DbClient *pgxpool.Pool
}

Configuration -

func ConfigurationContent

func ConfigurationContent(m *messaging.Message) (*Configuration, *messaging.Status)

func NewConfiguration

func NewConfiguration(timeout time.Duration) *Configuration

func (*Configuration) Update

func (c *Configuration) Update(cfg *Configuration)

type LogFunc

type LogFunc func(traffic string, start time.Time, duration time.Duration, route string, req any, resp any)

Jump to

Keyboard shortcuts

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