service

package
v0.0.0-...-4317800 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryManager

type DeliveryManager interface {
	// GetSymbols returns the set of available symbols.
	GetSymbols() []string
	// GetDataChannel returns the channel into which data about the specified character is written.
	GetDataChannel(symbol string) (<-chan *domain.Depth, error)
	// RunProviders launches providers.
	RunProviders(wg *sync.WaitGroup) (context.Context, context.CancelFunc)
}

DeliveryManager defines an interface for working with providers who collect order books.

func NewDeliveryService

func NewDeliveryService(serviceConfig *config.ServiceConfig, deliveryProvider delivery.DepthDeliveryProvider) DeliveryManager

type DeliveryService

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

DeliveryService implement DeliveryManager

func (*DeliveryService) GetDataChannel

func (s *DeliveryService) GetDataChannel(symbol string) (<-chan *domain.Depth, error)

GetDataChannel returns the channel into which data about the specified character is written.

func (*DeliveryService) GetSymbols

func (s *DeliveryService) GetSymbols() []string

GetSymbols returns the set of available symbols.

func (*DeliveryService) RunProviders

RunProviders launches providers.

Jump to

Keyboard shortcuts

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