Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginResSuccess = 0 LoginResBlocked = 3 LoginResIncorrectPassword = 4 LoginResUnFind = 5 LoginResBanned = 6 LoginResIsLogged = 7 LoginResServerBusy = 10 LoginResGenderNeeded = 11 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `toml:"log-level"` ListenClients string `toml:"listen-clients"` DataSource models.DataSourceConfig `toml:"data-source"` SendOps string `toml:"send-ops"` RecvOps string `toml:"recv-ops"` TestServer bool `toml:"test-server"` ServerID int `toml:"server-id"` ServerName string `toml:"server-name"` ChannelCount int `toml:"channel-count"` MaxCharactersLimit int `toml:"max-characters-limit"` }
func (*Config) LoadFromFile ¶
type LoginServer ¶
type LoginServer struct {
// contains filtered or unexported fields
}
func NewLoginServer ¶
func NewLoginServer(cfg *Config) *LoginServer
func (*LoginServer) Serve ¶
func (s *LoginServer) Serve(ctx *gosync.Context) error
Serve starts serving and blocked until shutdown or error occurs
func (*LoginServer) Stop ¶
func (s *LoginServer) Stop()
Click to show internal directories.
Click to hide internal directories.