spire

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTransport = TransportLibP2P
View Source
const TransportLibP2P = "libp2p"
View Source
const TransportLibSSB = "ssb"

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentDependencies

type AgentDependencies struct {
	Context   context.Context
	Signer    ethereum.Signer
	Transport transport.Transport
	Datastore datastore.Datastore
	Feeds     []ethereum.Address
	Logger    log.Logger
}

type ClientDependencies

type ClientDependencies struct {
	Context context.Context
	Signer  ethereum.Signer
}

type DatastoreDependencies

type DatastoreDependencies struct {
	Context   context.Context
	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