Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateAnimalDisplayName(seed uint64) string
- func GenerateDisplayNameIndex(seed uint64) int
- func GenerateFullDisplayName(seed uint64) string
- func GenerateGradient(seed uint64) model.GradientColor
- func GenerateParticipantSeed(discussionID, participantID string, shuffleCount int) uint64
- func RandomString(length int) string
- func ReturnParsedEntityID(entityID string) (*model.ParsedEntityID, error)
- func UUIDv4() string
- type FrozenTime
- type RealTime
- type TimeProvider
Constants ¶
View Source
const ( SocialNetworkTwitter = "twitter" SocialNetworkApple = "apple" )
Variables ¶
View Source
var AnimalArray = []string{}/* 331 elements not displayed */
Rearranging this or adding to this will change participant names! Think twice before doing it!
Functions ¶
func GenerateAnimalDisplayName ¶
Pull the entropy from bits 0-9 (most significant, big endian)
func GenerateDisplayNameIndex ¶
Pull the entropy from bits 16-25 (most significant)
func GenerateFullDisplayName ¶
func GenerateGradient ¶
func GenerateGradient(seed uint64) model.GradientColor
Pull the entropy from bits 10-15 (most significant, big endian)
func GenerateParticipantSeed ¶
func RandomString ¶
func ReturnParsedEntityID ¶
func ReturnParsedEntityID(entityID string) (*model.ParsedEntityID, error)
Types ¶
type FrozenTime ¶
func (*FrozenTime) Now ¶
func (ft *FrozenTime) Now() time.Time
type TimeProvider ¶
Click to show internal directories.
Click to hide internal directories.