Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServerUsed = errors.New("server is being used") ErrServerAlreadyExists = errors.New("server already exists") )
Functions ¶
func PutStoredServer ¶
func PutStoredServer(address string)
func RemoveStoredServer ¶
func RemoveStoredServer(addr string)
Types ¶
type ServerRecord ¶
type StoredServer ¶
type StoredServer struct { ID uint `gorm:"primary_key" json:"id"` Name string `json:"name"` Address string `json:"-" sql:"unique"` RCONPassword string `json:"-"` Used bool `sql:"default:false" json:"-"` }
func GetAllStoredServers ¶
func GetAllStoredServers() []*StoredServer
func GetAvailableServers ¶
func GetAvailableServers() []*StoredServer
func GetStoredServer ¶
func GetStoredServer(id uint) (*StoredServer, error)
func NewStoredServer ¶
func NewStoredServer(name, address, passwd string) (*StoredServer, error)
Click to show internal directories.
Click to hide internal directories.