Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateDefaultAuth(dbDriver, dbURL, user, pass, at string) error
- func GenerateDefaultWorld(version uint32, name string, id uint64, sqlDriver, sqlDB string, at string, ...) error
- func GenerateTLSKeyPair(at string) error
- type Auth
- type AuthFile
- type Realm
- type RealmType
- type RealmsFile
- type World
- type WorldFile
- type WorldVars
Constants ¶
View Source
const ( RealmTypeNone = 0 RealmTypePvP = 1 RealmTypeNormal = 4 RealmTypeRP = 6 RealmTypeRP_PvP = 8 )
View Source
const DefaultAuth = `` /* 884-byte string literal not displayed */
View Source
const DefaultWorld = `` /* 1125-byte string literal not displayed */
Variables ¶
View Source
var (
ErrAlreadyExists = fmt.Errorf("config: already exists")
)
View Source
var (
Presets = map[RealmType]WorldVars{}
)
Functions ¶
func GenerateDefaultAuth ¶
func GenerateDefaultWorld ¶
func GenerateTLSKeyPair ¶
Types ¶
type Auth ¶
type Auth struct { Path etc.Path Certificate tls.Certificate AuthFile }
func (*Auth) GenerateDefaultWorld ¶
func (*Auth) RealmsFile ¶
func (a *Auth) RealmsFile() (*RealmsFile, error)
type RealmsFile ¶
type WorldFile ¶
type WorldFile struct { Version vsn.Build Listen string RealmID uint64 RealmType RealmType RealmName string RealmDescription string DBDriver string DBURL string PublicAddress string WardenEnabled bool ShowSQL bool DatapackDir string AuthServer string AuthServerFingerprint string CPUProfile string WorldVars }
Click to show internal directories.
Click to hide internal directories.