api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetBotTransactionsHandler

func NewGetBotTransactionsHandler(tbRegistry tbtypes.BotRecordReadRegistry) httprouter.Handle

NewGetBotTransactionsHandler creates a handler to handle the API calls to /transactiondb/3bot/:id/transactions.

func NewGetRecordForIDHandler

func NewGetRecordForIDHandler(tbRegistry tbtypes.BotRecordReadRegistry) httprouter.Handle

NewGetRecordForIDHandler creates a handler to handle the API calls to /transactiondb/3bot/:id.

func NewGetRecordForNameHandler

func NewGetRecordForNameHandler(tbRegistry tbtypes.BotRecordReadRegistry) httprouter.Handle

NewGetRecordForNameHandler creates a handler to handle the API calls to /transactiondb/whois/3bot/:name.

func RegisterConsensusHTTPHandlers

func RegisterConsensusHTTPHandlers(router api.Router, tbRegistry tbtypes.BotRecordReadRegistry)

RegisterConsensusHTTPHandlers registers the 3Bot handlers for all consensus HTTP endpoints.

func RegisterExplorerHTTPHandlers

func RegisterExplorerHTTPHandlers(router api.Router, tbRegistry tbtypes.BotRecordReadRegistry)

RegisterExplorerHTTPHandlers registers the 3Bot handlers for all explorer HTTP endpoints.

Types

type GetBotRecord

type GetBotRecord struct {
	Record tbtypes.BotRecord `json:"record"`
}

GetBotRecord contains a requested bot record.

type GetBotTransactions

type GetBotTransactions struct {
	Identifiers []types.TransactionID `json:"ids"`
}

GetBotTransactions contains the requested identifiers of transactions for a specific bot.

Jump to

Keyboard shortcuts

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