staticdata

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcConnection

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

type ListingResult added in v1.4.0

type ListingResult struct {
	Listing *model.Listing
	Err     error
}

type ListingsResult added in v1.4.0

type ListingsResult struct {
	Listings []*model.Listing
	Err      error
}

type Source added in v1.4.0

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

Source is a source of static data that fetches data asynchronously from the static data service and has in-built retry behaviour

func NewStaticDataSource

func NewStaticDataSource(ctx context.Context) (*Source, error)

func (*Source) GetListing added in v1.4.0

func (s *Source) GetListing(ctx context.Context, listingId int32, resultChan chan<- ListingResult)

func (*Source) GetListingMatching added in v1.4.0

func (s *Source) GetListingMatching(ctx context.Context, matchParams *services.ExactMatchParameters, resultChan chan<- ListingResult)

func (*Source) GetListingsWithSameInstrument added in v1.4.0

func (s *Source) GetListingsWithSameInstrument(ctx context.Context, listingId int32, resultChan chan<- ListingsResult)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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