collecter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collecter

type Collecter interface {
	Collect(ctx context.Context) ([]*ticker.Price, error)
}

Collecter collects all ticker prices.

type StreamCollecter

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

func NewStreamCollecter

func NewStreamCollecter(streams []stream.Stream) *StreamCollecter

NewStreamCollecter returns new Collecter instance.

func (*StreamCollecter) Collect

func (c *StreamCollecter) Collect(ctx context.Context) ([]*ticker.Price, error)

Collect returns all data from streams.

Jump to

Keyboard shortcuts

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