util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FrisbiiConfigDir = ".frisbii"

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func LoadCar

func LoadCar(multicar *frisbii.MultiReadableStorage, carPath string) error

func LoadPrivKey

func LoadPrivKey(confDir string) (crypto.PrivKey, peer.ID, error)

Types

type ListenAddr

type ListenAddr struct {
	Maddr       multiaddr.Multiaddr
	Url         *url.URL
	Unspecified bool
}

func GetListenAddr

func GetListenAddr(serverAddr string, publicAddr string) (ListenAddr, error)

Jump to

Keyboard shortcuts

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