Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveDelegations ¶
func ArchiveDelegations(delegations ...delegation.Delegation) ([]byte, error)
ArchiveDelegations takes a list of delegations and returns CAR file bytes. This is the legacy format used in w3infra.
func ExtractDelegations ¶
func ExtractDelegations(b []byte) ([]delegation.Delegation, error)
ExtractDelegations extracts a set of delegations from a CAR file encoded in legacy format.
func FormatDelegations ¶
func FormatDelegations(delegations ...delegation.Delegation) (string, error)
FormatDelegations takes a list of delegations and returns a string that can be included in a URL.
func ParseDelegations ¶
func ParseDelegations(s string) ([]delegation.Delegation, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.