lobbies

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lobbies

type Lobbies struct {
	Lobbies []*LobbyConfig `validate:"dive" json:"lobbies" yaml:"lobbies"`
}

type LobbyConfig

type LobbyConfig struct {
	Name        string        `json:"name,omitempty" yaml:"name,omitempty"`
	Description string        `json:"desc,omitempty" yaml:"desc,omitempty"`
	Kind        string        `validate:"required,oneof=shared individual" json:"kind" yaml:"kind"`
	Duration    time.Duration `validate:"required,min=5s" json:"duration" yaml:"duration"`
	Strategy    string        `validate:"required_if=Kind shared,oneof=fail ignore ''" json:"strategy,omitempty" yaml:"strategy,omitempty"`
	Extensions  int           `validate:"min=0" json:"extensions,omitempty" yaml:"extensions,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL