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
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 NewTx ¶
NewTx models data from the notification handler
type SocketServer ¶
type SocketServer struct {
socketio.Server
// contains filtered or unexported fields
}
SocketServer wraps the socket.io server with the watched address list
Source Files
¶
- apimiddleware.go
- apirouter.go
- apiroutes.go
- converter.go
- log.go
- socket.io.go
Click to show internal directories.
Click to hide internal directories.