package
0.0.0-20240908172838-7bcebe7d766f
Repository: https://github.com/evcc-io/evcc.git
Documentation: pkg.go.dev

# Packages

Package shortrfc3339 implements helpers for working with shortened RFC-3339 compliant timestamps (those without seconds).
Package urlvalues provides functions for working with url.Values.

# Functions

CaptureLogs appends uiWriter to relevant log levels for loggers created before uiChan is initialized.
DecodeOther uses mapstructure to decode into target structure.
DefaultPort appends given port to connection if not specified.
DefaultScheme prepends given scheme to uri if not specified.
Flusher returns a new flush channel.
FormatValue will apply specific formatting in addition to standard sprintf.
LocalIPs returns a slice of local IPv4 addresses.
Loggers invokes callback for each configured logger.
LogLevel sets log level for all loggers.
NewCache creates cache.
NewLogger creates a logger with the given log area and adds it to the registry.
NewLoggerWithLoadpoint creates a logger with reference to at loadpoint.
NewMonitor created a new monitor with given timeout.
NewQueue constructs and returns an empty slice-queue.
RedactDefaultHook expands a redaction item to include URL encoding.
ReplaceFormatted replaces all occurrences of ${key} with formatted val from the kv map.
SignFromPower is a helper function to create signed current from signed power bypassing already signed current.
Truish returns true if value is truish (true/1/on).

# Variables

LogAreaPadding of log areas.
OutThreshold is the default console log level.
RedactHook is the hook for expanding different representations of redaction items.
RedactReplacement is the default replacement string.

# Structs

Cache is a data store.
ConfigError wraps yaml configuration errors from mapstructure.
Logger wraps a jww notepad to avoid leaking implementation detail.
Monitor monitors values for regular updates.
Param is the broadcast channel data type.
Queue is based on https://github.com/golang-ds/queue.
Redactor implements log redaction.
Tee distributes parameters to subscribers.

# Interfaces

TeeAttacher allows attaching a listener to a tee.