Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine represents a pricing engine. Do not use this directly. Use New() and an interface.
func NewEngine ¶
func NewEngine(cfg config.PricingConfig) *Engine
NewEngine creates a new pricing engine.
func (*Engine) GetPrice ¶
func (e *Engine) GetPrice(pricecfg ppconfig.PriceConfig) (pi ppservice.PriceResponse, err error)
GetPrice fetches a live/recent price from the price proxy.
Click to show internal directories.
Click to hide internal directories.