shorteruuid

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package `shorteruuid` is a name shorting service using RFC 4122 version 5 SHA-1-based UUIDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Names

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

func NewNames

func NewNames(cfg *NamesConfig) *Names

func NewNogNames

func NewNogNames() *Names

func (*Names) Shorten

func (ns *Names) Shorten(namespace, name string) string

DEPRECATED. Only for compatibility with package `shorter`. Use `UUID()` instead.

func (*Names) UUID

func (ns *Names) UUID(namespace, name string) uuid.I

type NamesConfig

type NamesConfig struct {
	Namespace uuid.I
}

Jump to

Keyboard shortcuts

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