Versions in this module Expand all Collapse all v2 v2.0.4 Jun 9, 2026 Changes in this version + func Flush() v2.0.3 Jun 8, 2026 Changes in this version type RedisPublisher + func NewRedisListPublisher(client *redis.Client, listName string) *RedisPublisher v2.0.2 Jun 8, 2026 Changes in this version + func SetPublisher(p Publisher) v2.0.1 Jun 8, 2026 Changes in this version + type RedisPublisher struct + func NewRedisPublisher(client *redis.Client, channel string) *RedisPublisher + func (p *RedisPublisher) Publish(ctx context.Context, report *CustomError) error v2.0.0 Jun 7, 2026 Changes in this version + const SeverityCritical + const SeverityDanger + const SeverityInfo + const SeverityWarning + func AutoWrap(err error) error + func Close() + func Info(tag string, format string, args ...any) + func Init(cfg Config) + func Wrap(err error, customDesc string) error + func WrapHTTPStatus(err error, statusCode int, customDesc string) error + func WrapReport(err error, opts ReportOptions) error + func WrapWithSeverity(err error, severity, customDesc string) error + type ClosePublisher interface + Close func() error + type Config struct + AppEnv string + AppName string + AutoWrapFallbackSeverity string + EnablePublishing bool + KafkaBrokers []string + KafkaTopic string + PublishMinSeverity string + Publisher Publisher + type CustomError struct + Description string + Environment string + ErrorType string + File string + FunctionName string + Line int + RawError string + Service string + Severity string + StatusCode int + Timestamp string + func (e *CustomError) Error() string + type KafkaPublisher struct + func NewKafkaPublisher(brokers []string, topic string) *KafkaPublisher + func (p *KafkaPublisher) Close() error + func (p *KafkaPublisher) Publish(ctx context.Context, report *CustomError) error + type Publisher interface + Publish func(ctx context.Context, report *CustomError) error + type ReportOptions struct + Description string + ErrorType string + Severity string + StatusCode int Other modules containing this package github.com/learncodexx/reporter