mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-13 13:14:11 +08:00
254 lines
3.5 KiB
Go
254 lines
3.5 KiB
Go
package models
|
|
|
|
import (
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
// 4-7 chars only
|
|
var NAMES = []string{
|
|
"logic",
|
|
"warrant",
|
|
"iconic",
|
|
"threat",
|
|
"strike",
|
|
"boy",
|
|
"vital",
|
|
"unity",
|
|
"audio",
|
|
"schemer",
|
|
"depth",
|
|
"gravitl",
|
|
"mystic",
|
|
"donkey",
|
|
"atomic",
|
|
"turtle",
|
|
"monkey",
|
|
"rabbit",
|
|
"static",
|
|
"mosaic",
|
|
"elite",
|
|
"stonks",
|
|
"doggy",
|
|
"python",
|
|
"mohawk",
|
|
"arctic",
|
|
"rival",
|
|
"vibes",
|
|
"delay",
|
|
"bridge",
|
|
"weeble",
|
|
"combat",
|
|
"animal",
|
|
"wobble",
|
|
"rubble",
|
|
"bucket",
|
|
"proof",
|
|
"worker",
|
|
"beetle",
|
|
"racket",
|
|
"equal",
|
|
"panda",
|
|
"antics",
|
|
"strong",
|
|
"forum",
|
|
"koala",
|
|
"anchor",
|
|
"ornery",
|
|
"indigo",
|
|
"schism",
|
|
"dragon",
|
|
"knight",
|
|
"bishop",
|
|
"laser",
|
|
"rhino",
|
|
"clutch",
|
|
"shark",
|
|
"leader",
|
|
"young",
|
|
"robot",
|
|
"squish",
|
|
"chimp",
|
|
"rocket",
|
|
"space",
|
|
"queen",
|
|
"royalty",
|
|
"flush",
|
|
"earth",
|
|
"planet",
|
|
"heart",
|
|
"droplet",
|
|
"dillon",
|
|
"saturn",
|
|
"pluto",
|
|
"school",
|
|
"alien",
|
|
"matte",
|
|
"dingo",
|
|
"meercat",
|
|
"cookie",
|
|
"snack",
|
|
"goose",
|
|
"pepper",
|
|
"melissa",
|
|
"alex",
|
|
"elon",
|
|
"yeet",
|
|
"meh",
|
|
"walrus",
|
|
"avatar",
|
|
"chicken",
|
|
"proton",
|
|
"mohawk",
|
|
"tattoo",
|
|
"zebra",
|
|
"star",
|
|
"butter",
|
|
"tango",
|
|
"homie",
|
|
"rambo",
|
|
"cosmo",
|
|
"bubbles",
|
|
"hulk",
|
|
"pluto",
|
|
"scooby",
|
|
"thanos",
|
|
"yoda",
|
|
"draco",
|
|
"goofy",
|
|
"ditto",
|
|
"puff",
|
|
"duck",
|
|
"mouse",
|
|
"akita",
|
|
"water",
|
|
"hound",
|
|
"baby",
|
|
"spider",
|
|
"squid",
|
|
"roach",
|
|
"crab",
|
|
"cougar",
|
|
"cyborg",
|
|
"android",
|
|
"being",
|
|
"ninja",
|
|
"unicorn",
|
|
"zombie",
|
|
"warrior",
|
|
"zamboni",
|
|
"life",
|
|
"marine",
|
|
"node",
|
|
"mother",
|
|
"father",
|
|
"tesla",
|
|
}
|
|
|
|
// must be 4 chars or less
|
|
var SMALL_NAMES = []string{
|
|
"ace",
|
|
"odd",
|
|
"hot",
|
|
"ill",
|
|
"root",
|
|
"sudo",
|
|
"moon",
|
|
"beef",
|
|
"bro",
|
|
"dank",
|
|
"red",
|
|
"gold",
|
|
"big",
|
|
"old",
|
|
"og",
|
|
"best",
|
|
"blue",
|
|
"lil",
|
|
"mom",
|
|
"bot",
|
|
"evil",
|
|
"good",
|
|
"holy",
|
|
"rad",
|
|
"bad",
|
|
"sad",
|
|
"mad",
|
|
"chad",
|
|
"pre",
|
|
"post",
|
|
"foot",
|
|
"soft",
|
|
"hard",
|
|
"lite",
|
|
"dark",
|
|
"true",
|
|
"toy",
|
|
"soy",
|
|
"rude",
|
|
"nice",
|
|
"fun",
|
|
"fat",
|
|
"pro",
|
|
"sly",
|
|
"tan",
|
|
"pet",
|
|
"fine",
|
|
"main",
|
|
"last",
|
|
"wide",
|
|
"free",
|
|
"open",
|
|
"poor",
|
|
"rich",
|
|
"next",
|
|
"real",
|
|
"long",
|
|
"huge",
|
|
"wild",
|
|
"sick",
|
|
"weak",
|
|
"firm",
|
|
"pink",
|
|
"okay",
|
|
"dull",
|
|
"loud",
|
|
"lazy",
|
|
"dumb",
|
|
"tidy",
|
|
"idle",
|
|
"bony",
|
|
"cute",
|
|
"oily",
|
|
"lame",
|
|
"mega",
|
|
"limp",
|
|
"wavy",
|
|
"edgy",
|
|
"nosy",
|
|
"zany",
|
|
"base",
|
|
"cold",
|
|
}
|
|
|
|
func GenerateNodeName() string {
|
|
rand.Seed(time.Now().UnixNano())
|
|
return SMALL_NAMES[rand.Intn(len(SMALL_NAMES))] + "-" + NAMES[seededRand.Intn(len(NAMES))]
|
|
}
|
|
|
|
func RetrieveLogo() string {
|
|
return `
|
|
______ ______ ______ __ __ __ ______ __
|
|
/\ ___\ /\ == \ /\ __ \ /\ \ / / /\ \ /\__ _\ /\ \
|
|
\ \ \__ \ \ \ __< \ \ __ \ \ \ \'/ \ \ \ \/_/\ \/ \ \ \____
|
|
\ \_____\ \ \_\ \_\ \ \_\ \_\ \ \__| \ \_\ \ \_\ \ \_____\
|
|
\/_____/ \/_/ /_/ \/_/\/_/ \/_/ \/_/ \/_/ \/_____/
|
|
|
|
__ __ ______ ______ __ __ ______ __ __ ______ ______
|
|
/\ "-.\ \ /\ ___\ /\__ _\ /\ "-./ \ /\ __ \ /\ \/ / /\ ___\ /\ == \
|
|
\ \ \-. \ \ \ __\ \/_/\ \/ \ \ \-./\ \ \ \ __ \ \ \ _"-. \ \ __\ \ \ __<
|
|
\ \_\\"\_\ \ \_____\ \ \_\ \ \_\ \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_____\ \ \_\ \_\
|
|
\/_/ \/_/ \/_____/ \/_/ \/_/ \/_/ \/_/\/_/ \/_/\/_/ \/_____/ \/_/ /_/
|
|
|
|
`
|
|
}
|