Documentation ¶
Index ¶
- Constants
- type API
- type Agent
- type AgentConfig
- type Client
- func (c *Client) PublishPrice(price *messages.Price) error
- func (c *Client) PullPrice(assetPair string, feed string) (*messages.Price, error)
- func (c *Client) PullPrices(assetPair string, feed string) ([]*messages.Price, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Wait() <-chan error
- type ClientConfig
- type Nothing
- type PublishPriceArg
- type PullPriceArg
- type PullPriceResp
- type PullPricesArg
- type PullPricesResp
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(cfg AgentConfig) (*Agent, error)
type AgentConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg ClientConfig) (*Client, error)
func (*Client) PullPrices ¶
type ClientConfig ¶
type PublishPriceArg ¶
type PullPriceArg ¶
type PullPriceResp ¶
type PullPricesArg ¶
type PullPricesResp ¶
Click to show internal directories.
Click to hide internal directories.