pubsub

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(parent context.Context, pubsub Client) context.Context

Types

type Client

type Client interface {
	Publish(ctx context.Context, backtestID uint, event event.Interface) error
	Subscribe(ctx context.Context, backtestID uint) (Subscriber, error)
}

func FromContext

func FromContext(ctx context.Context) Client

type Subscriber

type Subscriber interface {
	Channel() <-chan event.Interface
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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