Dump changes
This commit is contained in:
parent
e12550a643
commit
aac2ea1b74
25 changed files with 129 additions and 76 deletions
18
pkg/brainbuffer/infrastructure/context.go
Normal file
18
pkg/brainbuffer/infrastructure/context.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package infrastructure
|
||||
|
||||
import (
|
||||
"github.com/jackc/pgx/v4/pgxpool"
|
||||
"github.com/knadh/koanf"
|
||||
)
|
||||
|
||||
type Context struct {
|
||||
Database *pgxpool.Pool
|
||||
Config *koanf.Koanf
|
||||
}
|
||||
|
||||
func NewContext(db *pgxpool.Pool, config *koanf.Koanf) *Context {
|
||||
return &Context{
|
||||
Database: db,
|
||||
Config: config,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue