You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
419 B
26 lines
419 B
package services
|
|
|
|
import (
|
|
"git.aiterp.net/stufflog/server/database"
|
|
"git.aiterp.net/stufflog/server/internal/space"
|
|
)
|
|
|
|
type Bundle struct {
|
|
Auth *Auth
|
|
Upload *Upload
|
|
}
|
|
|
|
func NewBundle(db database.Database, s3 *space.Space) Bundle {
|
|
auth := &Auth{
|
|
users: db.Users(),
|
|
session: db.Session(),
|
|
projects: db.Projects(),
|
|
}
|
|
|
|
upload := &Upload{s3: s3}
|
|
|
|
return Bundle{
|
|
Auth: auth,
|
|
Upload: upload,
|
|
}
|
|
}
|