Documentation ¶
Index ¶
- func FeeHandler(publisher channels.Publisher, accounts accountsModule.AccountService, ...) func(http.ResponseWriter, *http.Request, *poolModule.Pool)
- func Handler(publisher channels.Publisher, accounts accountsModule.AccountService, ...) func(http.ResponseWriter, *http.Request, *poolModule.Pool)
- func HealthCheckHandler(redisClient *redis.Client) func(http.ResponseWriter, *http.Request)
- type ExchangeLookup
- type FeeInputPayload
- type FeeResponse
- type HealthCheck
- type IngestError
- type TermsManager
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeeHandler ¶
func FeeHandler(publisher channels.Publisher, accounts accountsModule.AccountService, affiliates affiliatesModule.AffiliateService, defaultFeeRecipient [20]byte, exchangeLookup ExchangeLookup) func(http.ResponseWriter, *http.Request, *poolModule.Pool)
func Handler ¶
func Handler(publisher channels.Publisher, accounts accountsModule.AccountService, affiliates affiliatesModule.AffiliateService, enforceTerms bool, tm TermsManager, exchangeLookup ExchangeLookup) func(http.ResponseWriter, *http.Request, *poolModule.Pool)
func HealthCheckHandler ¶
func HealthCheckHandler(redisClient *redis.Client) func(http.ResponseWriter, *http.Request)
Types ¶
type ExchangeLookup ¶
type FeeInputPayload ¶
type FeeInputPayload struct { Maker string `json:"maker"` Exchange string `json:"exchangeAddress"` FeeRecipient string `json:"feeRecipientAddress"` Taker string `json:"taker"` Sender string `json:"senderAddress"` }
FeeInputPayload only considers maker and feeRecipient when calculating fees. Everything else will be ignored.
type FeeResponse ¶
type HealthCheck ¶
type HealthCheck struct {
Time []string
}
type IngestError ¶
type IngestError struct { Code int `json:"code"` Reason string `json:"reason"` ValidationErrors []ValidationError `json:"validationErrors,omitempty"` }
type TermsManager ¶
type ValidationError ¶
Click to show internal directories.
Click to hide internal directories.