Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
InstanceID string
Client *redis.Client
KeyPrefix string
Hostname string
Listeners []config.ListenerConfig
StatsFunc func() Stats
Logger *slog.Logger
}
Config configures the heartbeat publisher.
type RedactedListener ¶ added in v0.6.8
type RedactedListener struct {
Name string `json:"name"`
Listen string `json:"listen"`
Mode string `json:"mode"`
Backend string `json:"backend"`
Advertise string `json:"advertise,omitempty"`
BackendTLS bool `json:"tls"`
Provisioner string `json:"provisioner,omitempty"` // "postgres" | "mongodb" | ""
}
RedactedListener is the subset of config.ListenerConfig that is safe to publish in the heartbeat. It deliberately omits all admin credential blocks (Postgres/MongoDB admin passwords, static-user passwords); only the provisioner kind is surfaced.
Click to show internal directories.
Click to hide internal directories.