spire

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentDependencies

type AgentDependencies struct {
	Signer     ethereum.Signer
	Transport  transport.Transport
	PriceStore *store.PriceStore
	Feeds      []ethereum.Address
	Logger     log.Logger
}

type ClientDependencies

type ClientDependencies struct {
	Signer ethereum.Signer
}

type PriceStoreDependencies

type PriceStoreDependencies struct {
	Signer    ethereum.Signer
	Transport transport.Transport
	Feeds     []ethereum.Address
	Logger    log.Logger
}

type RPC

type RPC struct {
	Address string `yaml:"address"`
}

type Spire

type Spire struct {
	RPC           RPC      `yaml:"rpc"` // Old configuration format, to remove in the future.
	RPCListenAddr string   `yaml:"rpcListenAddr"`
	Pairs         []string `yaml:"pairs"`
}

func (*Spire) ConfigureAgent

func (c *Spire) ConfigureAgent(d AgentDependencies) (*spire.Agent, error)

func (*Spire) ConfigureClient

func (c *Spire) ConfigureClient(d ClientDependencies) (*spire.Client, error)

func (*Spire) ConfigurePriceStore

func (c *Spire) ConfigurePriceStore(d PriceStoreDependencies) (*store.PriceStore, error)

Jump to

Keyboard shortcuts

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