package servers // The type represents unique bot authentication // token which is needed to connect to the bot net. type BotAuthToken int64 // More or less secure storage for passwords // identifying them by login. type PasswordMap map[Login]PasswordHash // The type represents sever configuration. type ServerConfig struct { // The map stores clients that can login // and the credentials. Auth PasswordMap `json:"auth"` // The token must be unique so only // needed bots can join the bot net. BotAuthToken BotAuthToken `json:"bot_auth_token"` }