Documentation ¶
Index ¶
- type RestAPI
- func (*RestAPI) Healthz(w http.ResponseWriter, _ *http.Request)
- func (restApi *RestAPI) Router(w http.ResponseWriter, r *http.Request)
- func (restApi *RestAPI) SetBlockchain(blockchain storage.IBlockchain)
- func (restApi *RestAPI) SetEvents(event *events.Events)
- func (restApi *RestAPI) SetIndex(index *storage.Index)
- func (restApi *RestAPI) SetLedger(ledger1 *ledger.Ledger)
- func (restApi *RestAPI) SetMempool(mempool *storage.Mempool)
- func (*RestAPI) Status(w http.ResponseWriter, _ *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestAPI ¶
type RestAPI struct {
// contains filtered or unexported fields
}
func NewRestAPI ¶
func NewRestAPI() *RestAPI
func (*RestAPI) SetBlockchain ¶
func (restApi *RestAPI) SetBlockchain(blockchain storage.IBlockchain)
func (*RestAPI) SetMempool ¶
Click to show internal directories.
Click to hide internal directories.