address

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package address is a package for managing OrbitDB addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(name string) error

IsValid Checks if a given name is a valid address

Types

type Address

type Address interface {
	// GetRoot Returns the root CID for the store
	GetRoot() cid.Cid

	// GetPath Returns the path for the store
	GetPath() string

	// String Returns the whole address for the store as a string
	String() string
}

Address A store address

func Parse

func Parse(path string) (Address, error)

Parse Returns an Address instance if the given path is valid

Jump to

Keyboard shortcuts

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