Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeDB ¶
func InitializeDB(cfg config.ServerConfig) (*sql.DB, error)
Types ¶
type Repositories ¶
type Repositories struct {
UserRepo user.Repository
CategoryRepo category.Repository
TopicRepo topic.Repository
CommentRepo comment.Repository
VoteRepo vote.Repository
NotificationRepo notification.Repository
OauthRepo oauth.Repository
ActivityRepo activity.Repository
}
func NewRepositories ¶
func NewRepositories(db *sql.DB) *Repositories
Click to show internal directories.
Click to hide internal directories.