app

package
v0.1.0-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiHandler

func NewApiHandler(hbbft core.Hbbft, logger kitlog.Logger) http.Handler

Types

type ErrIllegalArgument

type ErrIllegalArgument struct {
	Reason string
}

func (ErrIllegalArgument) Error

func (e ErrIllegalArgument) Error() string

type ProposeTxRequest

type ProposeTxRequest struct {
	Transaction Transaction `json:"transaction"`
}

type ProposeTxResponse

type ProposeTxResponse struct{}

type Transaction

type Transaction struct {
	From   string `json:"from"`
	To     string `json:"to"`
	Amount int    `json:"amount"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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