Documentation ¶
Index ¶
- type ApiServer
- func (apiServer *ApiServer) GetInfo(writer http.ResponseWriter, _ *http.Request)
- func (apiServer *ApiServer) InvalidSCIDStats(writer http.ResponseWriter, _ *http.Request)
- func (apiServer *ApiServer) InvokeIndexBySCID(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) InvokeSCVarsByHeight(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) MBLLookupAll(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) MBLLookupByAddr(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) MBLLookupByHash(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) NormalTxWithSCID(writer http.ResponseWriter, r *http.Request)
- func (apiServer *ApiServer) Start()
- func (apiServer *ApiServer) StatsIndex(writer http.ResponseWriter, _ *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiServer ¶
type ApiServer struct { Config *structures.APIConfig Stats atomic.Value StatsIntv time.Duration Backend *store.GravitonStore }
func NewApiServer ¶
func NewApiServer(cfg *structures.APIConfig, backend *store.GravitonStore) *ApiServer
Configures a new API server to be used
func (*ApiServer) GetInfo ¶
func (apiServer *ApiServer) GetInfo(writer http.ResponseWriter, _ *http.Request)
func (*ApiServer) InvalidSCIDStats ¶
func (apiServer *ApiServer) InvalidSCIDStats(writer http.ResponseWriter, _ *http.Request)
func (*ApiServer) InvokeIndexBySCID ¶
func (apiServer *ApiServer) InvokeIndexBySCID(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) InvokeSCVarsByHeight ¶
func (apiServer *ApiServer) InvokeSCVarsByHeight(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) MBLLookupAll ¶
func (apiServer *ApiServer) MBLLookupAll(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) MBLLookupByAddr ¶
func (apiServer *ApiServer) MBLLookupByAddr(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) MBLLookupByHash ¶
func (apiServer *ApiServer) MBLLookupByHash(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) NormalTxWithSCID ¶
func (apiServer *ApiServer) NormalTxWithSCID(writer http.ResponseWriter, r *http.Request)
func (*ApiServer) StatsIndex ¶
func (apiServer *ApiServer) StatsIndex(writer http.ResponseWriter, _ *http.Request)
Click to show internal directories.
Click to hide internal directories.