quotestream

package
v0.0.0-...-c4fb2dd Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMdsQuoteStream

func NewMdsQuoteStream(id string, targetAddress string, maxReconnectInterval time.Duration,
	quoteBufferSize int) (*mdsQuoteStream, error)

func NewMdsQuoteStreamFromFn

func NewMdsQuoteStreamFromFn(id string, targetAddress string, out chan *model.ClobQuote,
	getConnection GetMdsClientFn) (*mdsQuoteStream, error)

Types

type GetMdsClientFn

type GetMdsClientFn = func(targetAddress string) (marketdatasource.MarketDataSourceClient, GrpcConnection, error)

type GrpcConnection

type GrpcConnection interface {
	GetState() connectivity.State
	WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool
}

Jump to

Keyboard shortcuts

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