prefix

package
v0.0.0-...-a65a15d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EstablishmentOnly = iota
	DoNotDelegate
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Prefix

type Prefix interface {
	String() string
	Derivation() *derivation.Derivation
	Raw() []byte // Returns the RAW derived data
}

func FromString

func FromString(data string) (Prefix, error)

func New

func New(derivation *derivation.Derivation) Prefix

type Trait

type Trait int

Traits are configuration options that indicate certain restrictions on how the prefix is intended to be used. They are contained in the "c" field of an event.

func (Trait) String

func (t Trait) String() string

type Type

type Type int
const (
	Basic Type = iota
	SelfAddressing
)

Jump to

Keyboard shortcuts

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