mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-26 01:07:52 +00:00
20 lines
501 B
Go
20 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}
|
|
}
|