idprovider

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package idprovider contains definitions and functions that are shared by different implementations of the ID provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

Error type is used to define error constants for this package.

const (
	ErrPeerIDNotFound          Error = "peer id not found"
	ErrPeerAliasAlreadyUsed    Error = "peer alias is already used for another peer id"
	ErrPeerIDAlreadyRegistered Error = "peer id already regsitered"
	ErrParsingOffChainAddress  Error = "parsing off-chain address"
)

Definition of error constants for this package.

func (Error) Error

func (e Error) Error() string

Error implements error interface.

Directories

Path Synopsis
Package idprovidertest provides a test helper functions to initialize a local ID provider instance with a given list of peer IDs.
Package idprovidertest provides a test helper functions to initialize a local ID provider instance with a given list of peer IDs.
Package local contains an implementation of ID provider, where the peer IDs are stored in a YAML file stored locally on the disk.
Package local contains an implementation of ID provider, where the peer IDs are stored in a YAML file stored locally on the disk.

Jump to

Keyboard shortcuts

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