api

package
v0.0.0-...-eab5219 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(sp StatProvider, log *zap.Logger) http.Handler

NewServer returns an http.Handler that serves the API.

Types

type StatProvider

type StatProvider interface {
	Stats() stats.BlockStats
}

A StatProvider provides statistics about the current state of the Sia network.

Jump to

Keyboard shortcuts

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