stufflog graphql server
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

  1. package services
  2. import (
  3. "git.aiterp.net/stufflog/server/database"
  4. "git.aiterp.net/stufflog/server/internal/space"
  5. )
  6. type Bundle struct {
  7. Auth *Auth
  8. Upload *Upload
  9. }
  10. func NewBundle(db database.Database, s3 *space.Space) Bundle {
  11. auth := &Auth{
  12. users: db.Users(),
  13. session: db.Session(),
  14. projects: db.Projects(),
  15. }
  16. upload := &Upload{s3: s3}
  17. return Bundle{
  18. Auth: auth,
  19. Upload: upload,
  20. }
  21. }