Documentation ¶
Overview ¶
Package insight handles the insight api
Index ¶
Constants ¶
View Source
const APIVersion = 0
APIVersion is an integer value, incremented for breaking changes
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func NewInsightContext ¶
func NewInsightContext(client *rpcclient.Client, blockData *dcrpg.ChainDBRPC, params *chaincfg.Params, memPoolData DataSourceLite, JSONIndent string) *insightApiContext
NewInsightContext Constructor for insightApiContext
Types ¶
type ApiMux ¶
ApiMux contains the struct mux
func NewInsightApiRouter ¶
NewInsightApiRouter returns a new HTTP path router, ApiMux, for the Insight API.
type DataSourceLite ¶
type DataSourceLite interface {
UnconfirmedTxnsForAddress(address string) (*txhelpers.AddressOutpoints, int64, error)
}
DataSourceLite specifies an interface for collecting data from the built-in databases (i.e. SQLite, storm, ffldb)
type SocketServer ¶
type SocketServer struct { socketio.Server // contains filtered or unexported fields }
SocketServer wraps the socket.io server with the watched address list
func NewSocketServer ¶
func NewSocketServer(newTxChan chan *NewTx, params *chaincfg.Params) (*SocketServer, error)
NewSocketServer creates and returns new instance of the SocketServer
Click to show internal directories.
Click to hide internal directories.