protocol

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyProtocolID is returned if the protocol id was empty.
	ErrEmptyProtocolID = errors.New("protocol id cannot be empty")
	// ErrInvalidProtocolID is returned if the protocol id was invalid.
	ErrInvalidProtocolID = errors.New("protocol id was invalid")
)

Functions

func IDsToString added in v0.22.3

func IDsToString(ids []ID) []string

IDsToString converts a slice of IDs to strings.

Types

type ID

type ID string

ID is a protocol identifier.

func (ID) String added in v0.20.2

func (i ID) String() string

String returns the ID as a string.

func (ID) Validate

func (i ID) Validate() error

Jump to

Keyboard shortcuts

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