internal

package
v0.0.0-...-8d9596b Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseGrpc

type BaseGrpc struct {
}

func NewBaseGrpc

func NewBaseGrpc() *BaseGrpc

func (*BaseGrpc) Connection

func (p *BaseGrpc) Connection(
	ctx context.Context,
	nodeUrl string,
) (*grpc.ClientConn, error)

func (*BaseGrpc) GetCallOption

func (p *BaseGrpc) GetCallOption() grpc.CallOption

type RESTfulProvider

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

func NewRESTfulProvider

func NewRESTfulProvider(exchange string, symbols []string, interval int, timeout int, stopCh <-chan struct{}) (*RESTfulProvider, error)

func (*RESTfulProvider) GetPrices

func (p *RESTfulProvider) GetPrices() map[string]types.PriceByPair

type WebsocketProvider

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

func NewWebsocketProvider

func NewWebsocketProvider(exchange string, symbols []string, stopCh <-chan struct{}) (*WebsocketProvider, error)

func (*WebsocketProvider) GetPrices

func (p *WebsocketProvider) GetPrices() map[string]types.PriceByPair

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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