added more functionality
This commit is contained in:
26
models/server.go
Normal file
26
models/server.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package models
|
||||
|
||||
type Port struct {
|
||||
Protocol string
|
||||
Number int
|
||||
}
|
||||
|
||||
type ImageInfo struct {
|
||||
Name string
|
||||
Version string
|
||||
Ports []Port
|
||||
}
|
||||
|
||||
type ServerInfo struct {
|
||||
Id string
|
||||
OwnerId string
|
||||
Image ImageInfo
|
||||
On bool
|
||||
Nickname string
|
||||
}
|
||||
|
||||
type FileBrowserInfo struct {
|
||||
Id string
|
||||
OwnerId string
|
||||
ConnectedTo ServerInfo
|
||||
}
|
Reference in New Issue
Block a user