Documentation ¶
Index ¶
- Constants
- type Admin
- func (admin *Admin) Endpoints(w http.ResponseWriter, r *http.Request)
- func (admin *Admin) Healthz(w http.ResponseWriter, r *http.Request)
- func (admin *Admin) RetryFailedSwaps(w http.ResponseWriter, r *http.Request)
- func (admin *Admin) Serve()
- func (admin *Admin) UpdateSwapPairHandler(w http.ResponseWriter, r *http.Request)
- func (admin *Admin) WithdrawToken(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( DefaultListenAddr = "0.0.0.0:8080" MaxIconUrlLength = 400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
func NewAdmin ¶
func NewAdmin(config *util.Config, db *gorm.DB, signer *util.HmacSigner, swapEngine *swap.SwapEngine) *Admin
func (*Admin) RetryFailedSwaps ¶
func (admin *Admin) RetryFailedSwaps(w http.ResponseWriter, r *http.Request)
func (*Admin) UpdateSwapPairHandler ¶
func (admin *Admin) UpdateSwapPairHandler(w http.ResponseWriter, r *http.Request)
func (*Admin) WithdrawToken ¶
func (admin *Admin) WithdrawToken(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.