Documentation ¶
Index ¶
- func NewHandler(origin string, wp query.WorkerPool, cli pkgEthereum.Client, baseURL string, ...) (origins.Handler, error)
- type ErrCyclicReference
- type Gofer
- func (c *Gofer) ConfigureAsyncGofer(cli ethereum.Client, logger log.Logger) (provider.Provider, error)
- func (c *Gofer) ConfigureGofer(cli ethereum.Client, logger log.Logger, noRPC bool) (provider.Provider, error)
- func (c *Gofer) ConfigurePriceHook(ctx context.Context, cli ethereum.Client) (provider.PriceHook, error)
- func (c *Gofer) ConfigureRPCAgent(cli ethereum.Client, gof provider.Provider, logger log.Logger) (*rpc.Agent, error)
- type MedianPriceModel
- type Origin
- type PriceModel
- type RPC
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler( origin string, wp query.WorkerPool, cli pkgEthereum.Client, baseURL string, params yaml.Node, ) (origins.Handler, error)
Types ¶
type ErrCyclicReference ¶
func (ErrCyclicReference) Error ¶
func (e ErrCyclicReference) Error() string
type Gofer ¶
type Gofer struct { RPC RPC `yaml:"rpc"` // Old configuration format, to remove in the future. RPCListenAddr string `yaml:"rpcListenAddr"` RPCAgentAddr string `yaml:"rpcAgentAddr"` Origins map[string]Origin `yaml:"origins"` PriceModels map[string]PriceModel `yaml:"priceModels"` }
func (*Gofer) ConfigureAsyncGofer ¶
func (c *Gofer) ConfigureAsyncGofer(cli ethereum.Client, logger log.Logger) (provider.Provider, error)
ConfigureAsyncGofer returns a new async gofer instance.
func (*Gofer) ConfigureGofer ¶
func (c *Gofer) ConfigureGofer(cli ethereum.Client, logger log.Logger, noRPC bool) (provider.Provider, error)
ConfigureGofer returns a new async gofer instance.
func (*Gofer) ConfigurePriceHook ¶
type MedianPriceModel ¶
type PriceModel ¶
Click to show internal directories.
Click to hide internal directories.