Documentation ¶ Index ¶ func ProvideFiber() *fiber.App func ProvidePostgres(config *config.Config) (*bun.DB, error) type Repo func NewRepo(db *bun.DB) Repo func (r *Repo) BeginTx(ctx context.Context) (err error) func (r *Repo) Commit() error func (r *Repo) EndTx(err error) error func (r *Repo) Rollback() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ProvideFiber ¶ func ProvideFiber() *fiber.App func ProvidePostgres ¶ func ProvidePostgres(config *config.Config) (*bun.DB, error) Types ¶ type Repo ¶ type Repo struct { // DB is for normal database operations. DB bun.IDB // contains filtered or unexported fields } func NewRepo ¶ func NewRepo(db *bun.DB) Repo func (*Repo) BeginTx ¶ func (r *Repo) BeginTx(ctx context.Context) (err error) func (*Repo) Commit ¶ func (r *Repo) Commit() error func (*Repo) EndTx ¶ func (r *Repo) EndTx(err error) error func (*Repo) Rollback ¶ func (r *Repo) Rollback() error Source Files ¶ View all Source files fiber.go psql.go Click to show internal directories. Click to hide internal directories.