pubsubmock

package
v0.0.0-...-74d5043 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func (*Client) Publish

func (c *Client) Publish(ctx context.Context, backtestID uint, evt event.Interface) error

func (*Client) Subscribe

func (c *Client) Subscribe(ctx context.Context, backtestID uint) (pubsub.Subscriber, error)

type TickSubscriber

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

func (*TickSubscriber) Channel

func (ps *TickSubscriber) Channel() <-chan event.Interface

func (*TickSubscriber) Close

func (ps *TickSubscriber) Close() error

Jump to

Keyboard shortcuts

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