mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-26 09:17:55 +00:00
21 lines
501 B
Go
21 lines
501 B
Go
|
package activities
|
||
|
|
||
|
import (
|
||
|
"log/slog"
|
||
|
|
||
|
"github.com/jmoiron/sqlx"
|
||
|
"github.com/mentos1386/zdravko/database"
|
||
|
"github.com/mentos1386/zdravko/internal/config"
|
||
|
)
|
||
|
|
||
|
type Activities struct {
|
||
|
config *config.ServerConfig
|
||
|
db *sqlx.DB
|
||
|
kvStore database.KeyValueStore
|
||
|
logger *slog.Logger
|
||
|
}
|
||
|
|
||
|
func NewActivities(config *config.ServerConfig, logger *slog.Logger, db *sqlx.DB, kvStore database.KeyValueStore) *Activities {
|
||
|
return &Activities{config: config, logger: logger, db: db, kvStore: kvStore}
|
||
|
}
|