Documentation ¶
Index ¶
Constants ¶
View Source
const DevEnv = false
DevEnv toggles between SQL addresses for local or prod development
View Source
const InsertQuery string = "INSERT INTO intents VALUES(?, ?, ?)"
InsertQuery is a prepared SQL query of form url, intent, date
View Source
const PingTimeout time.Duration = 3 * time.Second
PingTimeout is the time to wait before cancelling database ping context
View Source
const RetryTimeout time.Duration = 10 * time.Second
RetryTimeout is the time to wait before reattempting database connection
Variables ¶
View Source
var ErrNotConnected error = errors.New("No connection to database")
ErrNotConnected should be thrown when there is no established connection to the database
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.