first commit
This commit is contained in:
15
models/database.go
Normal file
15
models/database.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
type Database struct {
|
||||
Path string `json:"dbPath,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
Create bool `json:"create,omitempty"`
|
||||
}
|
||||
|
||||
func (d *Database) SetDefaultPath() {
|
||||
d.Path = "data/mydatabase.db"
|
||||
}
|
||||
|
||||
func (d *Database) SetDefaultToken() {
|
||||
d.Token = "6576889abd578frdj,ouzt6909-gtrfb"
|
||||
}
|
Reference in New Issue
Block a user