{"modulePath":"github.com/transparency-dev/distributor","version":"v0.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api provides the API endpoints for the distributor.\n\n## Constants\n\n```go\nconst (\n\t// HTTPGetCheckpointN is the path of the URL to get a checkpoint with\n\t// at least N signatures.  The placeholders are:\n\t//  * first position is for the logID (an alphanumeric string)\n\t//  * second position is the number of signatures required\n\tHTTPGetCheckpointN = \"/distributor/v0/logs/%s/checkpoint.%s\"\n\t// HTTPCheckpointByWitness is the path of the URL to the latest checkpoint\n\t// for a given log by a given witness. This can take GET requests to fetch\n\t// the latest version, and PUT requests to update the latest checkpoint.\n\t//  * first position is for the logID (an alphanumeric string)\n\t//  * second position is the witness short name (alpha string)\n\tHTTPCheckpointByWitness = \"/distributor/v0/logs/%s/byWitness/%s/checkpoint\"\n\t// HTTPGetLogs is the path of the URL to get a list of all logs the\n\t// distributor is aware of.\n\tHTTPGetLogs = \"/distributor/v0/logs\"\n\t// HTTPGetWitnesses is the path of the URL to get a list of all witnesses\n\t// that the distributor is aware of.\n\tHTTPGetWitnesses = \"/distributor/v0/witnesses\"\n)\n```\n\n","path":"github.com/transparency-dev/distributor/api","name":"api","synopsis":"Package api provides the API endpoints for the distributor.","isRedistributable":true}
