Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddPinRequest ¶
type ListPinsResponse ¶
type PinStatus ¶
type PinStatus struct {
M sync.Mutex
RequestID string
Status string
Created time.Time
Pin Pin
Delegates []string
Info map[string]any
}
func (*PinStatus) MarshalJSON ¶
type PinningService ¶
type PinningService struct {
// PinAdded is a callback that is invoked after a new pin is added via the API.
PinAdded func(*AddPinRequest, *PinStatus)
// contains filtered or unexported fields
}
PinningService is a basic pinning service that implements the Remote Pinning API, for testing Kubo's integration with remote pinning services. Pins are not persisted, they are just kept in-memory, and this provides callbacks for controlling the behavior of the pinning service.
func New ¶
func New() *PinningService
Click to show internal directories.
Click to hide internal directories.