http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIHandler

func NewAPIHandler(ipfs *ipfs.Node, cfg config.Config, log *zap.Logger) http.Handler

NewAPIHandler returns a new http.Handler that handles requests to the api

func NewIPFSGatewayHandler

func NewIPFSGatewayHandler(ipfs *ipfs.Node, cfg config.Config, log *zap.Logger) http.Handler

NewIPFSGatewayHandler creates a new http.Handler for the IPFS gateway.

Types

type ProviderStatsResp

type ProviderStatsResp struct {
	TotalProvides          uint64        `json:"totalProvides"`
	LastReprovideBatchSize uint64        `json:"lastReprovideBatchSize"`
	AvgProvideDuration     time.Duration `json:"avgProvideDuration"`
	LastReprovideDuration  time.Duration `json:"lastReprovideDuration"`
}

The ProviderStatsResp struct is used to return stats about the reprovider system.

Jump to

Keyboard shortcuts

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