get server by id
This commit is contained in:
@@ -2,10 +2,11 @@ package model
|
||||
|
||||
// Server represents an ACC server instance
|
||||
type Server struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Name string `gorm:"not null"`
|
||||
IP string `gorm:"not null"`
|
||||
Port int `gorm:"not null"`
|
||||
ConfigPath string `gorm:"not null"` // e.g. "/acc/servers/server1/"
|
||||
ServiceName string `gorm:"not null"` // Windows service name
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Name string `gorm:"not null" json:"name"`
|
||||
Status string `json:"status"`
|
||||
IP string `gorm:"not null" json:"-"`
|
||||
Port int `gorm:"not null" json:"-"`
|
||||
ConfigPath string `gorm:"not null" json:"-"` // e.g. "/acc/servers/server1/"
|
||||
ServiceName string `gorm:"not null" json:"-"` // Windows service name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user