Documentation
¶
Index ¶
- func ConvertBootstrap(peers []string, devMode bool) (peer.BootstrapParams, error)
- func ConvertToAddrInfo(peers []string) ([]libp2p.AddrInfo, error)
- func ConvertToMultiAddr(addr string) (*libp2p.AddrInfo, error)
- func CopyDir(srcDir, dstDir string) error
- func CopyFile(src, dst string) error
- func DuplicateModFile(srcFile, dstFile string, ops ...ModFileOps) error
- func FormatSwarmKey(key string) (pnet.PSK, error)
- func GenerateSwarmKey() (string, error)
- func GenerateSwarmKeyFromString(data string) string
- func SafeAbs(p string) string
- type ModFileOps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBootstrap ¶
func ConvertBootstrap(peers []string, devMode bool) (peer.BootstrapParams, error)
func CopyDir ¶ added in v1.1.5
CopyDir copies all files from srcDir to dstDir, skipping existing files in dstDir.
func CopyFile ¶ added in v1.1.5
CopyFile copies a file from src to dst. If dst does not exist, it is created. If it exists, its contents are replaced with the contents of src.
func DuplicateModFile ¶ added in v1.1.5
func DuplicateModFile(srcFile, dstFile string, ops ...ModFileOps) error
func GenerateSwarmKey ¶ added in v1.1.5
func GenerateSwarmKeyFromString ¶ added in v1.1.5
Note: This will generate a predictable key Only use if you know whjat you're doing
Types ¶
type ModFileOps ¶ added in v1.1.5
func ModRename ¶ added in v1.1.5
func ModRename(newModuleName string) ModFileOps
func Replace ¶ added in v1.1.5
func Replace(oldPath, newPath string) ModFileOps
Click to show internal directories.
Click to hide internal directories.