logger

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger logs all messages sent and received by the transport.

func New

func New(t transport.Service, l log.Logger) *Logger

New creates a new Logger transport.

func (*Logger) Broadcast

func (r *Logger) Broadcast(topic string, msg transport.Message) error

Broadcast implements the transport.Transport interface.

func (*Logger) Messages

func (r *Logger) Messages(topic string) <-chan transport.ReceivedMessage

Messages implements the transport.Transport interface.

func (*Logger) ServiceName

func (r *Logger) ServiceName() string

ServiceName implements the supervisor.WithName interface.

func (*Logger) Start

func (r *Logger) Start(ctx context.Context) error

Start implements the transport.Transport interface.

func (*Logger) Wait

func (r *Logger) Wait() <-chan error

Wait implements the transport.Transport interface.

Jump to

Keyboard shortcuts

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