spire

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AgentLoggerTag = "SPIRE_AGENT"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func (*API) PublishPrice

func (n *API) PublishPrice(arg *PublishPriceArg, _ *Nothing) error

func (*API) PullPrice

func (n *API) PullPrice(arg *PullPriceArg, resp *PullPriceResp) error

func (*API) PullPrices

func (n *API) PullPrices(arg *PullPricesArg, resp *PullPricesResp) error

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(ctx context.Context, cfg AgentConfig) (*Agent, error)

func (*Agent) Start

func (s *Agent) Start() error

func (*Agent) Wait added in v0.2.0

func (s *Agent) Wait()

Wait waits until agent's context is cancelled.

type AgentConfig

type AgentConfig struct {
	Datastore datastore.Datastore
	Transport transport.Transport
	Signer    ethereum.Signer
	Network   string
	Address   string
	Logger    log.Logger
}

type Client added in v0.2.0

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v0.2.0

func NewClient(ctx context.Context, cfg ClientConfig) (*Client, error)

func (*Client) PublishPrice added in v0.2.0

func (c *Client) PublishPrice(price *messages.Price) error

func (*Client) PullPrice added in v0.2.0

func (c *Client) PullPrice(assetPair string, feeder string) (*messages.Price, error)

func (*Client) PullPrices added in v0.2.0

func (c *Client) PullPrices(assetPair string, feeder string) ([]*messages.Price, error)

func (*Client) Start added in v0.2.0

func (c *Client) Start() error

func (*Client) Wait added in v0.2.0

func (c *Client) Wait()

type ClientConfig added in v0.2.0

type ClientConfig struct {
	Signer  ethereum.Signer
	Network string
	Address string
}

type Nothing

type Nothing = struct{}

type PublishPriceArg

type PublishPriceArg struct {
	Price *messages.Price
}

type PullPriceArg

type PullPriceArg struct {
	AssetPair string
	Feeder    string
}

type PullPriceResp

type PullPriceResp struct {
	Price *messages.Price
}

type PullPricesArg

type PullPricesArg struct {
	FilterAssetPair string
	FilterFeeder    string
}

type PullPricesResp

type PullPricesResp struct {
	Prices []*messages.Price
}

Jump to

Keyboard shortcuts

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