restapi

package
v0.0.0-...-8369a04 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Healthz

func (*RestAPI) Healthz(w http.ResponseWriter, _ *http.Request)

func (*RestAPI) Router

func (restApi *RestAPI) Router(w http.ResponseWriter, r *http.Request)

func (*RestAPI) SetBlockchain

func (restApi *RestAPI) SetBlockchain(blockchain storage.IBlockchain)

func (*RestAPI) SetEvents

func (restApi *RestAPI) SetEvents(event *events.Events)

func (*RestAPI) SetIndex

func (restApi *RestAPI) SetIndex(index *storage.Index)

func (*RestAPI) SetLedger

func (restApi *RestAPI) SetLedger(ledger1 *ledger.Ledger)

func (*RestAPI) SetMempool

func (restApi *RestAPI) SetMempool(mempool *storage.Mempool)

func (*RestAPI) SetNftMempool

func (restApi *RestAPI) SetNftMempool(nftMempool *nft.Mempool)

func (*RestAPI) SetNftStorage

func (restApi *RestAPI) SetNftStorage(nftStorage *nft.Storage)

func (*RestAPI) Status

func (*RestAPI) Status(w http.ResponseWriter, _ *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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