protocol

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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

This section is empty.

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