app

package
v0.10.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ADMIN_CURRENCY_KEY string = "currency"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ABCI

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

ABCI is used as an input for creating a new node

func (*ABCI) BeginBlock

func (app *ABCI) BeginBlock(request RequestBeginBlock) ResponseBeginBlock

func (*ABCI) CheckTx

func (app *ABCI) CheckTx(tx []byte) ResponseCheckTx

func (*ABCI) Commit

func (app *ABCI) Commit() ResponseCommit

func (*ABCI) DeliverTx

func (app *ABCI) DeliverTx(tx []byte) ResponseDeliverTx

func (*ABCI) EndBlock

func (app *ABCI) EndBlock(request RequestEndBlock) ResponseEndBlock

func (*ABCI) Info

func (app *ABCI) Info(request RequestInfo) ResponseInfo

func (*ABCI) InitChain

func (app *ABCI) InitChain(request RequestInitChain) ResponseInitChain

func (*ABCI) Query

func (app *ABCI) Query(request RequestQuery) ResponseQuery

func (*ABCI) SetOption

func (app *ABCI) SetOption(request RequestSetOption) ResponseSetOption

type ABCIApp

type ABCIApp = abci.Application

type App

type App struct {
	Context context
	// contains filtered or unexported fields
}

func NewApp

func NewApp(cfg *config.Server, nodeContext *node.Context) (*App, error)

New returns new app fresh and ready to start

func (*App) ABCI

func (app *App) ABCI() *ABCI

ABCI returns an ABCI-ready Application used to initialize the new Node

func (*App) Close

func (app *App) Close()

Close closes the application

func (*App) Header

func (app *App) Header() Header

Header returns this node's header

func (*App) Node

func (app *App) Node() *consensus.Node

Node returns the consensus.Node, use this value to communicate with the internal consensus engine

func (*App) Start

func (app *App) Start() error

Start initializes the state

type Code

type Code uint32
const (
	CodeOK    Code = 0x00
	CodeNotOK Code = 0x01
)
type Header = abci.Header

type RequestBeginBlock

type RequestBeginBlock = abci.RequestBeginBlock

type RequestCheckTx

type RequestCheckTx = abci.RequestCheckTx

type RequestDeliverTx

type RequestDeliverTx = abci.RequestDeliverTx

type RequestEndBlock

type RequestEndBlock = abci.RequestEndBlock

type RequestInfo

type RequestInfo = abci.RequestInfo

type RequestInitChain

type RequestInitChain = abci.RequestInitChain

type RequestQuery

type RequestQuery = abci.RequestQuery

type RequestSetOption

type RequestSetOption = abci.RequestSetOption

type ResponseBeginBlock

type ResponseBeginBlock = abci.ResponseBeginBlock

type ResponseCheckTx

type ResponseCheckTx = abci.ResponseCheckTx

type ResponseCommit

type ResponseCommit = abci.ResponseCommit

type ResponseDeliverTx

type ResponseDeliverTx = abci.ResponseDeliverTx

type ResponseEndBlock

type ResponseEndBlock = abci.ResponseEndBlock

type ResponseInfo

type ResponseInfo = abci.ResponseInfo

type ResponseInitChain

type ResponseInitChain = abci.ResponseInitChain

type ResponseQuery

type ResponseQuery = abci.ResponseQuery

type ResponseSetOption

type ResponseSetOption = abci.ResponseSetOption

type Validator

type Validator = abci.Validator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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