starting sqlite rewrite
- adding db connector - starting rewrite of commands - WIP
This commit is contained in:
16
model/data.go
Normal file
16
model/data.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user