noid

package
v0.0.0-...-4d07d55 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDType

type IDType struct {
	Byte   byte
	String string
}

type Identifier

type Identifier []byte

Identifier format: [IDRegistry (4 bytes), IDType (1 byte), ObjectVersion, ID]

func (Identifier) CloneBytes

func (id Identifier) CloneBytes() []byte

func (*Identifier) IDFromStringBase32

func (id *Identifier) IDFromStringBase32(data string) error

func (Identifier) IDtoStringBase32

func (id Identifier) IDtoStringBase32() string

func (Identifier) IsValid

func (id Identifier) IsValid(additionalVerifier func(Identifier, IdentifierFormat) error, format IdentifierFormat) error

type IdentifierFormat

type IdentifierFormat struct {
	Types                []string
	ObjectVersionLength  int
	ObjectVersionChecker func(IDtype string, ObjectVersion []byte) error
	MinIDlength          int
	MaxIDlength          int
	IDChecker            func(IDtype string, ObjectVersion []byte, ID []byte) error
}

Jump to

Keyboard shortcuts

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