regutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dig

func Dig(gw string, short bool, name string) (string, error)

Dig interrogates registry server. It performs CID lookups and shows the response.

func DockerizeHash

func DockerizeHash(base58Hash string) string

DockerizeHash does base58 to base32 conversion

func IpfsURL

func IpfsURL(gw string, s []string) string

IpfsURL constructs IPFS gateway URL

func IpfsifyHash

func IpfsifyHash(base32Hash string) string

IpfsifyHash does base32 to base58 conversion

func ToB32

func ToB32(s string) string

ToB32 returns base32 encoded string if s is a valid cid

func ToB58

func ToB58(s string) string

ToB58 returns base58 encoded string if s is a valid cid

Types

This section is empty.

Jump to

Keyboard shortcuts

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