controllers

package
v0.0.0-...-3332e24 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayNum   = 50
	BlockHashLen = 40
	TxHashLen    = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

type ApiController struct {
	beego.Controller
}

func (*ApiController) QueryBlock

func (p *ApiController) QueryBlock()

func (*ApiController) QueryBlockList

func (p *ApiController) QueryBlockList()

func (*ApiController) QueryTx

func (p *ApiController) QueryTx()

func (*ApiController) QueryTxsByBlkHeight

func (p *ApiController) QueryTxsByBlkHeight()

func (*ApiController) QueryTxsList

func (p *ApiController) QueryTxsList()

func (*ApiController) QueryTxsListByBlk

func (p *ApiController) QueryTxsListByBlk()

func (*ApiController) SaveContractMeta

func (p *ApiController) SaveContractMeta()

type BlockListResp

type BlockListResp struct {
	Total  int
	Blocks []repository.Block
}

type Pagination

type Pagination struct {
	Total   int `json:"total"`
	Current int `json:"current"`
}

type PaginationResult

type PaginationResult struct {
	Data interface{} `json:"data"`
	Page Pagination  `json:"page"`
}

type Result

type Result struct {
	Success bool        `json:"success"`
	Data    interface{} `json:"data"`
}

type TxListResp

type TxListResp struct {
	Total int
	Txs   []repository.Transaction
}

type TxsController

type TxsController struct {
	beego.Controller
}

func (*TxsController) Query

func (tc *TxsController) Query()

type WebController

type WebController struct {
	beego.Controller
}

func (*WebController) Block

func (wc *WebController) Block()

func (*WebController) Blocks

func (wc *WebController) Blocks()

func (*WebController) Contract

func (wc *WebController) Contract()

func (*WebController) ContractPage

func (wc *WebController) ContractPage()

func (*WebController) ContractsLatest

func (wc *WebController) ContractsLatest()

func (*WebController) Index

func (wc *WebController) Index()

func (*WebController) Search

func (wc *WebController) Search()

func (*WebController) TxsLatest

func (wc *WebController) TxsLatest()

func (*WebController) TxsPage

func (wc *WebController) TxsPage()

Jump to

Keyboard shortcuts

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