messaging

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWatermillLoggerAdapter

func NewWatermillLoggerAdapter(logger log.Logger) watermill.LoggerAdapter

Types

type BrokerConfig

type BrokerConfig struct {
	Broker  string
	Address string
	Timeout time.Duration
}

type NatsJsConsumerConfig added in v0.0.17

type NatsJsConsumerConfig struct {
	DurableName  string
	ConsumerName string
	StreamName   string
	Subject      string
	HandlerName  string
	HandlerFunc  func(msg *message.Message) error
}

type WatermillLoggerAdapter

type WatermillLoggerAdapter struct {
	// contains filtered or unexported fields
}

func (*WatermillLoggerAdapter) Debug

func (w *WatermillLoggerAdapter) Debug(msg string, fields watermill.LogFields)

Debug implements watermill.LoggerAdapter.

func (*WatermillLoggerAdapter) Error

func (w *WatermillLoggerAdapter) Error(msg string, err error, fields watermill.LogFields)

Error implements watermill.LoggerAdapter.

func (*WatermillLoggerAdapter) Info

func (w *WatermillLoggerAdapter) Info(msg string, fields watermill.LogFields)

Info implements watermill.LoggerAdapter.

func (*WatermillLoggerAdapter) Trace

func (w *WatermillLoggerAdapter) Trace(msg string, fields watermill.LogFields)

Trace implements watermill.LoggerAdapter.

func (*WatermillLoggerAdapter) With

With implements watermill.LoggerAdapter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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