Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delegates ¶
type Delegates []string
Delegates - List of multiaddrs designated by pinning service that will receive the pin data; see Provider Hints in the docs
type Failure ¶
type Failure struct {
Error FailureError `json:"error"`
}
Failure - Response for a failed request
func NewAPIError ¶
type FailureError ¶
type Origins ¶
type Origins []string
Origins - Optional list of multiaddrs known to provide the data; see Provider Hints in the docs
type Pin ¶
type Pin struct { // Content Identifier (CID) to be pinned recursively Cid string `json:"cid"` // Optional name for pinned data; can be used for lookups later Name string `json:"name,omitempty"` Origins Origins `json:"origins,omitempty"` Meta PinMeta `json:"meta,omitempty"` }
Pin - Pin object
type PinResults ¶
type PinResults struct { // The total number of pin objects that exist for passed query filters Count int32 `json:"count"` // An array of PinStatus results Results []PinStatus `json:"results"` }
PinResults - Response used for listing pin objects matching request
type PinStatus ¶
type PinStatus struct { // Globally unique identifier of the pin request; can be used to check the status of ongoing pinning, or pin removal Requestid string `json:"requestid"` Status Status `json:"status"` // Immutable timestamp indicating when a pin request entered a pinning service; can be used for filtering results and pagination Created time.Time `json:"created"` Pin Pin `json:"pin"` Delegates Delegates `json:"delegates"` Info StatusInfo `json:"info,omitempty"` }
PinStatus - Pin object with status
type TextMatchingStrategy ¶
type TextMatchingStrategy string
TextMatchingStrategy : Alternative text matching strategy
const ( EXACT TextMatchingStrategy = "exact" IEXACT TextMatchingStrategy = "iexact" PARTIAL TextMatchingStrategy = "partial" IPARTIAL TextMatchingStrategy = "ipartial" )
List of TextMatchingStrategy
Click to show internal directories.
Click to hide internal directories.