Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
GetConnection allows us to retrieve the database connection easier
Types ¶
type Config ¶
type Config struct { Database struct { Host string Port int User string Password string Sslmode string Dbname string MigrateTable string `yaml:"migrateTable"` } }
Config config to run gatherfi
func (*Config) GetConnectionString ¶
GetConnectionString returns the connection string for the database
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database structure for handling database operations
func GetDatabase ¶
GetDatabase allows us to retrieve the database easier
func NewDatabase ¶
NewDatabase creates a Database object and connects to database
func (*Database) SetConnectionString ¶
SetConnectionString will terminate any previous database connection
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server structure for handling data requests
func (*Server) SetHandler ¶
SetHandler setter to initialize the handler
func (*Server) StartServer ¶
StartServer starts the webserver and waits for signal to shutdown
Click to show internal directories.
Click to hide internal directories.