tracker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tracker contains the Solana cluster tracker logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB *index.DB
}

Handler implements the tracker API methods.

func NewHandler

func NewHandler(db *index.DB) *Handler

NewHandler creates a new tracker API using the provided database.

func (*Handler) GetBestSnapshots

func (h *Handler) GetBestSnapshots(c *gin.Context)

GetBestSnapshots returns the currently available best snapshots.

func (*Handler) GetSnapshots added in v0.0.2

func (h *Handler) GetSnapshots(c *gin.Context)

func (*Handler) RegisterHandlers

func (h *Handler) RegisterHandlers(group gin.IRoutes)

RegisterHandlers registers this API with Gin web framework.

Jump to

Keyboard shortcuts

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