etag

package
v0.27.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(data []byte) string

New generates a unique string based on the SHA1 hash of the input data.

func NewFromRevision

func NewFromRevision(revision int64) string

NewFromRevision takes in an int64 and returns a hexadecimal string representation of it.

func ParseRevision

func ParseRevision(etag string) (int64, error)

ParseRevision decodes a hexadecimal string into an int64 value and returns it, or an error if the string is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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