api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	// Error is the description of the error.
	Error string `json:"error"`
}

ErrorResponse represents the response that signal an error has occurred.

type GetStatusResponse

type GetStatusResponse struct {
	ID       string    `json:"id"`
	Replicas []Replica `json:"replicas,omitempty"`
}

type Piece added in v0.2.2

type Piece struct {
	Expiration   time.Time `json:"expiration"`
	LastVerified time.Time `json:"lastVerified"`
	PieceCID     string    `json:"pieceCid"`
	Status       string    `json:"status"`
}

type PostBlobResponse

type PostBlobResponse struct {
	// ID is the unique identifier for the uploaded blob.
	ID string `json:"id"`
}

PostBlobResponse represents the response to a successful POST request to upload a blob.

type Replica

type Replica struct {
	Provider string  `json:"provider"`
	Pieces   []Piece `json:"pieces"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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