mock

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: GPL-3.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 -

func (*GraphqlResponseGetterStub) Query

func (stub *GraphqlResponseGetterStub) Query(ctx context.Context, url string, query string, variables string) ([]byte, error)

Query -

type HttpResponseGetterStub

type HttpResponseGetterStub struct {
	GetCalled func(ctx context.Context, url string, response interface{}) error
}

HttpResponseGetterStub -

func (*HttpResponseGetterStub) Get

func (stub *HttpResponseGetterStub) Get(ctx context.Context, url string, response interface{}) error

Get -

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 -

func (*PriceFetcherStub) Name

func (stub *PriceFetcherStub) Name() string

Name -

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 -

Jump to

Keyboard shortcuts

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