Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct {
// Addr is the address to listen on.
Addr string `yaml:"addr"`
// Token is the authentication token that Spectrum uses to authenticate with servers.
// When making requests to servers, Spectrum sends this token to the server for validation.
Token string `yaml:"token"`
// LatencyInterval is the interval at which the latency of the connection is updated in milliseconds.
// The lower the interval, the more accurate the latency will be, but the more bandwidth it will use.
LatencyInterval int64 `yaml:"latency_interval"`
}
func DefaultOpts ¶
func DefaultOpts() *Opts
type Spectrum ¶
type Spectrum struct {
// contains filtered or unexported fields
}
func NewSpectrum ¶
type StatusProvider ¶
type StatusProvider struct {
// contains filtered or unexported fields
}
func NewStatusProvider ¶
func NewStatusProvider(message string) *StatusProvider
func (*StatusProvider) ServerStatus ¶
func (s *StatusProvider) ServerStatus(playerCount int, maxPlayers int) minecraft.ServerStatus
Click to show internal directories.
Click to hide internal directories.