orderservice

package module
v0.0.0-...-9dd5173 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 13 Imported by: 0

README

neo-order-service

neo order service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	slf4go.Logger
	// contains filtered or unexported fields
}

HTTPServer .

func NewHTTPServer

func NewHTTPServer(cnf *config.Config) (*HTTPServer, error)

NewHTTPServer .

func (*HTTPServer) Run

func (service *HTTPServer) Run() error

Run run http service

type Order

type Order struct {
	Tx          string  `json:"tx" form:"tx" binding:"required"`
	From        string  `json:"from" form:"from" binding:"required"`
	To          string  `json:"to" form:"to" binding:"required"`
	Asset       string  `json:"asset" form:"asset" binding:"required"`
	Value       string  `json:"value" form:"value" binding:"required"`
	CreateTime  string  `json:"createTime" form:"createTime"`
	ConfirmTime string  `json:"confirmTime" form:"confirmTime"`
	Context     *string `json:"context,omitempty" xorm:"json"`
}

Order neo order object

type TxWatcher

type TxWatcher struct {
	slf4go.Logger
	// contains filtered or unexported fields
}

TxWatcher tx event watcher

func NewTxWatcher

func NewTxWatcher(conf *config.Config) (*TxWatcher, error)

NewTxWatcher .

func (*TxWatcher) Run

func (watcher *TxWatcher) Run()

Run run watcher

Directories

Path Synopsis
cmd
hugo

Jump to

Keyboard shortcuts

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