http

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Huobi

type Huobi interface {
	PendingIntermediateTxs() (map[common.ActivityID]common.TXEntry, error)
}

Huobi is the HTTP server to keep track of immediate transactions between Houbi and Kyber Network. The reason is Huobi doesn't allow transaction directly from contract account.

type Server

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

Server for huobi which including app stand for huobi exchange instance in reserve data host is for api calling r for http engine

func NewHuobiHTTPServer

func NewHuobiHTTPServer(app Huobi) *Server

NewHuobiHTTPServer return new http instance

func (*Server) PendingIntermediateTxs

func (s *Server) PendingIntermediateTxs(c *gin.Context)

PendingIntermediateTxs get pending transaction

func (*Server) Run

func (s *Server) Run()

Run run http server for huobi

Jump to

Keyboard shortcuts

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