components

package
v0.0.0-...-c95a47d Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckDigit

func AddCheckDigit(condition bool) string

AddCheckDigit creates a check digit for an identifier

func ObtainPID

func ObtainPID() int

ObtainPID obtains the process ID of the machine running an operation for the identifier.

func RandString

func RandString() string

RandString returns the String for the Sequence Number used in the identifier.

func SetServiceNumber

func SetServiceNumber(service string) string

SetServiceNumber provides the ability to set a service number for reference and returns it.

func StringWithCharset

func StringWithCharset(length int, charset string) string

StringWithCharset creates a random string on 5 characters. a-z A-Z 0-9

func TimeSinceOrganizationEpoch

func TimeSinceOrganizationEpoch(orgEpoch int64) int64

TimeSinceOrganizationEpoch returns an epoch time which describes how long its been between organizations epoch and when an object was created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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