Documentation ¶
Index ¶
- Constants
- type Base
- func (b *Base) GetChatNames() []string
- func (b *Base) GetFormattedName() string
- func (b *Base) GetMentionsText() string
- func (b *Base) GetName() string
- func (b *Base) GetOffTime() uint
- func (b *Base) GetProtocol() string
- func (b *Base) GetServerAddr() string
- func (b *Base) GetTimeout() int
- func (b *Base) IncrementOffTime()
- func (b *Base) IsMarkedAsWorking() bool
- func (b *Base) MarkIsWorking(working bool)
- type HttpServer
- type RaknetServer
- type RconServer
- type Server
- type TcpServer
- type UdpServer
Constants ¶
View Source
const UnconnectedPingSize = 1 + 8 + 16 + 8 // byte + long + magic bytes (16) + long
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) GetChatNames ¶
func (*Base) GetFormattedName ¶
func (*Base) GetMentionsText ¶
func (*Base) GetOffTime ¶
func (*Base) GetProtocol ¶
func (*Base) GetServerAddr ¶
func (*Base) GetTimeout ¶
func (*Base) IncrementOffTime ¶
func (b *Base) IncrementOffTime()
func (*Base) IsMarkedAsWorking ¶
func (*Base) MarkIsWorking ¶
type HttpServer ¶
type HttpServer struct {
*Base
}
func (*HttpServer) CheckConnection ¶
func (s *HttpServer) CheckConnection() (err error)
func (*HttpServer) Init ¶
func (s *HttpServer) Init(data map[string]interface{}) error
type RaknetServer ¶
type RaknetServer struct { *Base // contains filtered or unexported fields }
func (*RaknetServer) CheckConnection ¶
func (s *RaknetServer) CheckConnection() error
func (*RaknetServer) Init ¶
func (s *RaknetServer) Init(data map[string]interface{}) error
type RconServer ¶
type RconServer struct { *Base // contains filtered or unexported fields }
func (*RconServer) CheckConnection ¶
func (s *RconServer) CheckConnection() (err error)
func (*RconServer) Init ¶
func (s *RconServer) Init(data map[string]interface{}) error
type Server ¶
type Server interface { Init(data map[string]interface{}) error CheckConnection() error GetName() string GetServerAddr() string GetProtocol() string GetChatNames() []string GetTimeout() int GetFormattedName() string GetMentionsText() string MarkIsWorking(working bool) IsMarkedAsWorking() bool IncrementOffTime() GetOffTime() uint }
Click to show internal directories.
Click to hide internal directories.