Versions in this module Expand all Collapse all v0 v0.1.4 Jun 10, 2021 v0.1.3 Jun 10, 2021 v0.1.2 Jun 10, 2021 Changes in this version + type StatusError interface + Status func() int v0.1.1 Jun 9, 2021 Changes in this version + func Handler(h PinHandler) http.Handler + func Token(ctx context.Context) (string, bool) + type Pin struct + CID string + Meta interface{} + Name string + Origins []string + type PinHandler interface + AddPin func(ctx context.Context, pin Pin) (PinStatus, error) + DeletePin func(ctx context.Context, requestID string) error + GetPin func(ctx context.Context, requestID string) (PinStatus, error) + Pins func(ctx context.Context, query PinQuery) ([]PinStatus, error) + UpdatePin func(ctx context.Context, requestID string, pin Pin) (PinStatus, error) + type PinQuery struct + After time.Time + Before time.Time + CID []string + Limit int + Match TextMatchingStrategy + Meta interface{} + Name string + Status []RequestStatus + type PinStatus struct + Created time.Time + Delegates []string + Info interface{} + Pin Pin + RequestID string + Status RequestStatus + type RequestStatus string + const Failed + const Pinned + const Pinning + const Queued + type TextMatchingStrategy string + const Exact + const IExact + const IPartial + const Partial + func (tms TextMatchingStrategy) Match(haystack, needle string) bool v0.1.0 Jun 9, 2021