Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphqlResponseGetterStub ¶
type GraphqlResponseGetterStub struct {
GetCalled func(ctx context.Context, url string, query string, variables string) ([]byte, error)
}
GraphqlResponseGetterStub -
type HttpResponseGetterStub ¶
type HttpResponseGetterStub struct {
GetCalled func(ctx context.Context, url string, response interface{}) error
}
HttpResponseGetterStub -
type PriceFetcherStub ¶
type PriceFetcherStub struct { NameCalled func() string FetchPriceCalled func(ctx context.Context, base string, quote string) (float64, error) AddPairCalled func(base, quote string) }
PriceFetcherStub -
func (*PriceFetcherStub) AddPair ¶
func (stub *PriceFetcherStub) AddPair(base, quote string)
AddPair -
func (*PriceFetcherStub) FetchPrice ¶
func (stub *PriceFetcherStub) FetchPrice(ctx context.Context, base string, quote string) (float64, error)
FetchPrice -
func (*PriceFetcherStub) IsInterfaceNil ¶
func (stub *PriceFetcherStub) IsInterfaceNil() bool
IsInterfaceNil -
type PriceNotifeeStub ¶
type PriceNotifeeStub struct {
PriceChangedCalled func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error
}
PriceNotifeeStub -
func (*PriceNotifeeStub) IsInterfaceNil ¶
func (stub *PriceNotifeeStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*PriceNotifeeStub) PriceChanged ¶
func (stub *PriceNotifeeStub) PriceChanged(ctx context.Context, args []*aggregator.ArgsPriceChanged) error
PriceChanged -
Click to show internal directories.
Click to hide internal directories.