server

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

type ApiServer struct {
	// contains filtered or unexported fields
}

func StartSnapshotApiServer

func StartSnapshotApiServer(config *config.Config, blockStore *store.BlockStore, stateStore state.Store, port int64) *ApiServer

func (*ApiServer) GetBlockHandler

func (apiServer *ApiServer) GetBlockHandler(c *gin.Context)

func (*ApiServer) GetSeenCommitHandler

func (apiServer *ApiServer) GetSeenCommitHandler(c *gin.Context)

func (*ApiServer) GetStateHandler

func (apiServer *ApiServer) GetStateHandler(c *gin.Context)

func (*ApiServer) ListSnapshotsHandler

func (apiServer *ApiServer) ListSnapshotsHandler(c *gin.Context)

func (*ApiServer) LoadSnapshotChunkHandler

func (apiServer *ApiServer) LoadSnapshotChunkHandler(c *gin.Context)

type MetricsServer

type MetricsServer struct {
	// contains filtered or unexported fields
}

func StartMetricsApiServer

func StartMetricsApiServer(blockStore *store.BlockStore, port int64) *MetricsServer

func (*MetricsServer) MetricsHandler

func (metricsServer *MetricsServer) MetricsHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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