Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AppDB represents main application database AppDB name = iota // LogDB represents http logging database LogDB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
Datastore struct stores common environment related items
func NewDatastore ¶
NewDatastore initializes the datastore struct NOTE: I have chosen to use the same database for logging as my "main" app database. I'd recommend having a separate db and would have a separate method to start that connection pool up and pass it, but since this is just an example....
Click to show internal directories.
Click to hide internal directories.