Documentation ¶
Index ¶
- Constants
- type API
- type Agent
- type AgentConfig
- type FeedArg
- type FeedResp
- type Gofer
- func (c *Gofer) Models(pairs ...gofer.Pair) (map[gofer.Pair]*gofer.Model, error)
- func (c *Gofer) Pairs() ([]gofer.Pair, error)
- func (c *Gofer) Price(pair gofer.Pair) (*gofer.Price, error)
- func (c *Gofer) Prices(pairs ...gofer.Pair) (map[gofer.Pair]*gofer.Price, error)
- func (c *Gofer) Start() error
- func (c *Gofer) Stop() error
- type NodesArg
- type NodesResp
- type Nothing
- type PairsResp
- type PricesArg
- type PricesResp
Constants ¶
View Source
const AgentLoggerTag = "GOFER_AGENT"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent creates and manages an RPC server for remote Gofer calls.
func NewAgent ¶
func NewAgent(cfg AgentConfig) (*Agent, error)
NewAgent returns a new Agent instance.
type AgentConfig ¶
type AgentConfig struct { // Gofer instance which will be used by the agent. If this instance // implements the gofer.StartableGofer interface, the Start and Stop // methods are called whenever corresponding Agent's Start and // Stop are called. Gofer gofer.Gofer // Network is used for the rpc.Listener function. Network string // Address is used for the rpc.Listener function. Address string Logger log.Logger }
type Gofer ¶
type Gofer struct {
// contains filtered or unexported fields
}
Gofer implements the gofer.Gofer interface. It uses a remote RPC server to fetch prices and models.
Click to show internal directories.
Click to hide internal directories.