blid

package
v0.0.0-...-9c71d87 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blid

type Blid struct {
	// contains filtered or unexported fields
}

func NewFromBytes

func NewFromBytes(in []byte) (Blid, error)

NewFromBytes returns a blob id object from its bytes representation.

func NewFromString

func NewFromString(s string) (Blid, error)

NewFromString returns a blob id object from its string representation.

func NewFromSummer

func NewFromSummer(s summer) (Blid, error)

NewFromSummer returns a Blid for the passed in summer.

func (*Blid) Bytes

func (blid *Blid) Bytes() []byte

Bytes returns the raw bytes of the object.

func (*Blid) Empty

func (blid *Blid) Empty() bool

func (*Blid) Equals

func (blid *Blid) Equals(target Blid) bool

Equals returns true if both objects refer to the same blob id.

func (*Blid) Hasher

func (b *Blid) Hasher() (hash.Hash, error)

Hasher returns a hash.Hasher for the Blid key.

func (Blid) String

func (blid Blid) String() string

String produces a web-safe version of the object and implements the Stringer interface.

Jump to

Keyboard shortcuts

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