spire

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: AGPL-3.0 Imports: 6 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
	Datastore datastore.Datastore
	Feeds     []ethereum.Address
	Logger    log.Logger
}

type ClientDependencies

type ClientDependencies struct {
	Signer ethereum.Signer
}

type DatastoreDependencies

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

type RPC

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

type Spire

type Spire struct {
	RPC            RPC      `json:"rpc"`
	Pairs          []string `json:"pairs"`
	TransportToUse string   `json:"transport"`
}

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) ConfigureDatastore

func (c *Spire) ConfigureDatastore(d DatastoreDependencies) (datastore.Datastore, error)

Jump to

Keyboard shortcuts

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