http

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_PAGE_SIZE = 50
	DEFAULT_PAGE  = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(host string, persister persister.Persister, fetcher *fetcher.Fetcher, core *core.Core) *HTTPServer

func (*HTTPServer) GetErrorLog

func (self *HTTPServer) GetErrorLog(c *gin.Context)

func (*HTTPServer) GetGasPrice

func (self *HTTPServer) GetGasPrice(c *gin.Context)

func (*HTTPServer) GetKyberEnabled

func (self *HTTPServer) GetKyberEnabled(c *gin.Context)

func (*HTTPServer) GetLast7D

func (self *HTTPServer) GetLast7D(c *gin.Context)

func (*HTTPServer) GetLatestBlock

func (self *HTTPServer) GetLatestBlock(c *gin.Context)

func (*HTTPServer) GetMaxGasPrice

func (self *HTTPServer) GetMaxGasPrice(c *gin.Context)

func (*HTTPServer) GetRate

func (self *HTTPServer) GetRate(c *gin.Context)

func (*HTTPServer) GetRateETH

func (self *HTTPServer) GetRateETH(c *gin.Context)

func (*HTTPServer) GetRateUSD

func (self *HTTPServer) GetRateUSD(c *gin.Context)

func (*HTTPServer) GetRightMarketInfo

func (self *HTTPServer) GetRightMarketInfo(c *gin.Context)

func (*HTTPServer) GetSourceAmount

func (self *HTTPServer) GetSourceAmount(c *gin.Context)

func (*HTTPServer) GetUserInfo

func (self *HTTPServer) GetUserInfo(c *gin.Context)

func (*HTTPServer) Run

func (self *HTTPServer) Run(kyberENV string)

Jump to

Keyboard shortcuts

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