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.

19 lines
282 B

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