Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleBlockExplorer ¶
type SimpleBlockExplorer struct {
// contains filtered or unexported fields
}
SimpleBlockExplorer represents a very simple HTTP block explorer
func New ¶
func New(s blockchain.Storage, mp *mempool.MemPool) (*SimpleBlockExplorer, error)
New creates new block explorer
func (*SimpleBlockExplorer) ViewBlock ¶ added in v0.1.1
func (e *SimpleBlockExplorer) ViewBlock(w http.ResponseWriter, r *http.Request)
ViewBlock executes block page template with Block data
func (*SimpleBlockExplorer) ViewIndex ¶ added in v0.1.1
func (e *SimpleBlockExplorer) ViewIndex(w http.ResponseWriter, r *http.Request)
ViewIndex executes index page template with general data
func (*SimpleBlockExplorer) ViewTX ¶ added in v0.1.1
func (e *SimpleBlockExplorer) ViewTX(w http.ResponseWriter, r *http.Request)
ViewTX executes transaction page template with TX data
Click to show internal directories.
Click to hide internal directories.