api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides the API endpoints for the distributor.

Index

Constants

View Source
const (
	// HTTPGetCheckpointN is the path of the URL to get a checkpoint with
	// at least N signatures.  The placeholders are:
	//  * first position is for the logID (an alphanumeric string)
	//  * second position is the number of signatures required
	HTTPGetCheckpointN = "/distributor/v0/logs/%s/checkpoint.%s"
	// HTTPCheckpointByWitness is the path of the URL to the latest checkpoint
	// for a given log by a given witness. This can take GET requests to fetch
	// the latest version, and PUT requests to update the latest checkpoint.
	//  * first position is for the logID (an alphanumeric string)
	//  * second position is the witness short name (alpha string)
	HTTPCheckpointByWitness = "/distributor/v0/logs/%s/byWitness/%s/checkpoint"
	// HTTPGetLogs is the path of the URL to get a list of all logs the
	// distributor is aware of.
	HTTPGetLogs = "/distributor/v0/logs"
	// HTTPGetWitnesses is the path of the URL to get a list of all witnesses
	// that the distributor is aware of.
	HTTPGetWitnesses = "/distributor/v0/witnesses"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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