handler

package
v0.0.0-...-180b776 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBlockchain

func SetBlockchain(bc *core.Blockchain)

func SetupRoutes

func SetupRoutes()

Types

type CellData

type CellData struct {
	Data  string   `json:"data"` // Base64 encoded
	VerId *big.Int `json:"ver_id"`
}

type InputData

type InputData struct {
	Type       int    `json:"type"`
	OutputHash string `json:"output_hash"` // Base64 encoded
	Data       string `json:"data"`        // Base64 encoded
}

type OutputData

type OutputData struct {
	Type int    `json:"type"`
	Data string `json:"data"` // Base64 encoded
}

type TransactionData

type TransactionData struct {
	Type      int                  `json:"type"`
	TableName string               `json:"table_name"`
	RowId     string               `json:"row_id"`
	Cols      map[string]*CellData `json:"cols"`
	Inputs    []*InputData         `json:"inputs"`
	Outputs   []*OutputData        `json:"outputs"`
}

func FromCoreTransaction

func FromCoreTransaction(tx *core.Transaction) *TransactionData

Jump to

Keyboard shortcuts

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