admin

package
v0.0.0-...-50fcca9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

type Admin struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func NewAdmin

func NewAdmin(config *util.Config, db *gorm.DB, signer *util.HmacSigner, swapEngine *swap.SwapEngine) *Admin

func (*Admin) Endpoints

func (admin *Admin) Endpoints(w http.ResponseWriter, r *http.Request)

func (*Admin) Healthz

func (admin *Admin) Healthz(w http.ResponseWriter, r *http.Request)

func (*Admin) RetryFailedSwaps

func (admin *Admin) RetryFailedSwaps(w http.ResponseWriter, r *http.Request)

func (*Admin) Serve

func (admin *Admin) Serve()

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL