shelldoor/servers/config.go

21 lines
558 B
Go
Raw Permalink Normal View History

2024-09-28 19:26:08 +03:00
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"`
}