byteid

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID []byte

ID is a helper for managing byte slices as IDs

func (ID) Dec

func (id ID) Dec() ID

Dec returns a new byte slice ID that is decremented by one from the given ID.

func (ID) Inc

func (id ID) Inc() ID

Inc returns a new byte slice ID that is incremented by one from the given ID.

type IDLen

type IDLen uint16

IDLen is used to generate byte slice IDs

func (IDLen) Rand

func (ln IDLen) Rand() ID

Rand creates a random byte slice ID of length IDLen

func (IDLen) Zero

func (ln IDLen) Zero() ID

Zero returns a byte slice of length IDLen that is all zeros

type Index

type Index = idx.Index[[]byte]

type IndexFactory

type IndexFactory = idx.IndexFactory[[]byte]

Directories

Path Synopsis
Package testsuite provides tests to validate that an implementation of byteid.Index is correct.
Package testsuite provides tests to validate that an implementation of byteid.Index is correct.

Jump to

Keyboard shortcuts

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