nats

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func New

func New(c config.NATS) (*Adapter, error)

func (*Adapter) Close

func (a *Adapter) Close(ctx context.Context)

func (*Adapter) PublishTick

func (a *Adapter) PublishTick(ctx context.Context, tick tick.Tick) error

func (*Adapter) SubscribeToTicks

func (a *Adapter) SubscribeToTicks(ctx context.Context, sub event.PricesSubscription) (<-chan tick.Tick, error)

Jump to

Keyboard shortcuts

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