17 lines
380 B
Go
17 lines
380 B
Go
package model
|
|
|
|
//list of all fields kept in config file
|
|
// var ConfigFields = [6]string{"customcmd", "device", "nonce", "port", "server", "password"}
|
|
|
|
type Command struct {
|
|
Name string `db:"name"`
|
|
Command string `db:"command"`
|
|
}
|
|
|
|
type Server struct {
|
|
Name string `db:"name"`
|
|
Server string `db:"server"`
|
|
Password string `db:"password"`
|
|
Port int `db:"port"`
|
|
}
|