Documentation
¶
Index ¶
- func ConnectPGXPool(ctx context.Context, databaseURL string, logLevel string) (*pgxpool.Pool, error)
- func ConnectPGXPoolWithRetry(ctx context.Context, databaseURL string, logLevel string, attempts int, ...) (*pgxpool.Pool, error)
- func GetenvOrDefault(key, defaultValue string) string
- func GetenvOrDefaultInt(key, defaultValue string) int
- func InitSlog() string
- func KgoLogLevelFromString(levelStr string) kgo.LogLevel
- func NewPgxTracer(levelStr string) *tracelog.TraceLog
- func RequireEnv(key string) string
- func SetupEchoDefaults(e *echo.Echo, subsystem string, healthHandler echo.HandlerFunc, ...)
- func SplitCommaSeparated(raw string) []string
- type Event
- type EventSummary
- type KgoSlogLogger
- type Severity
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectPGXPool ¶
func ConnectPGXPoolWithRetry ¶
func GetenvOrDefault ¶
func GetenvOrDefaultInt ¶
func KgoLogLevelFromString ¶
func NewPgxTracer ¶
func RequireEnv ¶
func SetupEchoDefaults ¶
func SetupEchoDefaults(e *echo.Echo, subsystem string, healthHandler echo.HandlerFunc, readyHandler echo.HandlerFunc)
func SplitCommaSeparated ¶
Types ¶
type Event ¶
type EventSummary ¶
type KgoSlogLogger ¶
type KgoSlogLogger struct {
// contains filtered or unexported fields
}
func NewKgoSlogLogger ¶
func NewKgoSlogLogger(logger *slog.Logger, level kgo.LogLevel) *KgoSlogLogger
func (*KgoSlogLogger) Level ¶
func (l *KgoSlogLogger) Level() kgo.LogLevel
Click to show internal directories.
Click to hide internal directories.