Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooksHandler ¶
type BooksHandler struct {
PgConn PostgresConnector
}
func NewBooksHandler ¶
func NewBooksHandler(PgConn PostgresConnector) BooksHandler
func (BooksHandler) GET ¶
func (h BooksHandler) GET() http.Handler
type DataBaseConfiguration ¶
type DataBaseConfiguration struct { Type string `json:"type"` Host string `json:"host"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` DBName string `json:"dbname"` SSL string `json:"ssl"` ConnMaxLifetime int `json:"connMaxLifetime"` MaxIdleConns int `json:"maxIdleConns"` MaxOpenConns int `json:"maxOpenConns"` }
type PostgresConnector ¶
type PostgresConnector struct {
// contains filtered or unexported fields
}
func NewPostgresConnector ¶
func NewPostgresConnector(gConfig DataBaseConfiguration) PostgresConnector
func (PostgresConnector) DBConnection ¶
func (pc PostgresConnector) DBConnection() *sql.DB
Click to show internal directories.
Click to hide internal directories.