28 lines
702 B
Go
28 lines
702 B
Go
package model
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
toolkitModel "git.nakama.town/fmartingr/gotoolkit/model"
|
|
"git.nakama.town/fmartingr/hako/internal/config"
|
|
)
|
|
|
|
// Dependencies represents the interface for application dependencies
|
|
type Dependencies interface {
|
|
Logger() *slog.Logger
|
|
Config() *config.Config
|
|
Database() toolkitModel.DB
|
|
Domains() DomainDependencies
|
|
}
|
|
|
|
// DomainDependencies represents the interface for domain-specific dependencies
|
|
type DomainDependencies interface {
|
|
Links() LinkDomain
|
|
SetLinks(links LinkDomain)
|
|
Archives() ArchiveDomain
|
|
SetArchives(archives ArchiveDomain)
|
|
Categories() CategoryDomain
|
|
SetCategories(categories CategoryDomain)
|
|
Auth() AuthDomain
|
|
SetAuth(auth AuthDomain)
|
|
}
|