utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownSenderParty       = errors.New("received frame from unknown party")
	ErrDuplicateFrame           = errors.New("duplicate frame")
	ErrFrameTooLarge            = errors.New("frame payload too large")
	ErrQueueFull                = errors.New("inbound queue is full")
	ErrStalledProtocol          = errors.New("protocol stalled")
	ErrKeyShareNotFound         = errors.New("ecdsa key share not found")
	ErrSignDigestRequired       = errors.New("sign digest is required")
	ErrSignAlgorithmUnsupported = errors.New("sign supports only ecdsa")
	ErrECDSAPubKeyUnavailable   = errors.New("ecdsa public key is unavailable")
)

Functions

func IsTSSDebugEnabled

func IsTSSDebugEnabled(logger *slog.Logger) bool

Types

type Metrics

type Metrics interface {
	IncSessionsStarted(stage string)
	IncSessionsSucceeded(stage string)
	IncSessionsFailed(stage string, reason string)
	IncStalls(stage string)
	IncTimeouts(stage string)
	IncDedupHits(stage string)
	IncFramesSent(stage string)
	IncFramesRecv(stage string)
	IncQueueFull(stage string)
	IncOversizedFrames(stage string)
	ObserveSessionDuration(stage string, d time.Duration)
}

type NoopMetrics

type NoopMetrics struct{}

func (NoopMetrics) IncDedupHits

func (NoopMetrics) IncDedupHits(string)

func (NoopMetrics) IncFramesRecv

func (NoopMetrics) IncFramesRecv(string)

func (NoopMetrics) IncFramesSent

func (NoopMetrics) IncFramesSent(string)

func (NoopMetrics) IncOversizedFrames

func (NoopMetrics) IncOversizedFrames(string)

func (NoopMetrics) IncQueueFull

func (NoopMetrics) IncQueueFull(string)

func (NoopMetrics) IncSessionsFailed

func (NoopMetrics) IncSessionsFailed(string, string)

func (NoopMetrics) IncSessionsStarted

func (NoopMetrics) IncSessionsStarted(string)

func (NoopMetrics) IncSessionsSucceeded

func (NoopMetrics) IncSessionsSucceeded(string)

func (NoopMetrics) IncStalls

func (NoopMetrics) IncStalls(string)

func (NoopMetrics) IncTimeouts

func (NoopMetrics) IncTimeouts(string)

func (NoopMetrics) ObserveSessionDuration

func (NoopMetrics) ObserveSessionDuration(string, time.Duration)

Jump to

Keyboard shortcuts

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