chain

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

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

Chain is a transport implementation that chains multiple transports together.

func New

func New(ts ...transport.Service) *Chain

New creates a new Chain instance.

func (*Chain) Broadcast

func (m *Chain) Broadcast(topic string, message transport.Message) error

Broadcast implements the transport.Transport interface.

func (*Chain) Messages

func (m *Chain) Messages(topic string) <-chan transport.ReceivedMessage

Messages implements the transport.Transport interface.

func (*Chain) ServiceName added in v0.20.0

func (m *Chain) ServiceName() string

ServiceName implements the supervisor.WithName interface.

func (*Chain) Start

func (m *Chain) Start(ctx context.Context) error

Start implements the transport.Transport interface.

func (*Chain) Wait

func (m *Chain) 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