Documentation ¶
Index ¶
- func LoadEnv(logger interfaces.Logger) error
- func NewLogger(o, e io.Writer) interfaces.Logger
- func NewSQLHandler(logger interfaces.Logger) (interfaces.SQLHandler, error)
- func NewValidator() interfaces.Validator
- func Routes(logger interfaces.Logger, validator interfaces.Validator, ...) error
- type Logger
- type Result
- type Row
- type SQLHandler
- type Tx
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnv ¶
func LoadEnv(logger interfaces.Logger) error
func NewSQLHandler ¶
func NewSQLHandler(logger interfaces.Logger) (interfaces.SQLHandler, error)
func NewValidator ¶
func NewValidator() interfaces.Validator
func Routes ¶
func Routes(logger interfaces.Logger, validator interfaces.Validator, sqlHandler interfaces.SQLHandler) error
Types ¶
type SQLHandler ¶
func (*SQLHandler) Begin ¶
func (s *SQLHandler) Begin() (interfaces.Tx, error)
func (*SQLHandler) Exec ¶
func (s *SQLHandler) Exec(query string, args ...interface{}) (interfaces.Result, error)
func (*SQLHandler) Query ¶
func (s *SQLHandler) Query(query string, args ...interface{}) (interfaces.Row, error)
Click to show internal directories.
Click to hide internal directories.