restapi

package
v0.0.0-...-b669dc8 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 8 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) 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