Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is used when something went wrong.
type PricingEngine ¶
type PricingEngine interface {
GetPrice(pricecfg ppconfig.PriceConfig) (pi ppservice.PriceResponse, err error)
}
PricingEngine is the source of price information from the price proxy.
type Service ¶
type Service struct { *httprouter.Router // contains filtered or unexported fields }
Service is the HTTP service.
func NewService ¶
NewService creates a new service instance (with optional mocks for test purposes).
func (*Service) Status ¶
func (s *Service) Status(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
Status is an endpoint to show the service is up (always returns succeeded=true).
func (*Service) TradersSettlement ¶ added in v0.36.0
func (s *Service) TradersSettlement(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
TradersSettlement is an endpoint to show details of all active traders.
type SimpleResponse ¶
type SimpleResponse struct {
Success bool `json:"success"`
}
SimpleResponse is used to show if a request succeeded or not, without giving any more detail.
Click to show internal directories.
Click to hide internal directories.