GraphQL API and utilities for the rpdata project
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.

17 lines
374 B

  1. package services
  2. import "git.aiterp.net/rpdata/api/repositories"
  3. // A Bundle contains all services, like a bean bag in the more caffeinated language family.
  4. type Bundle struct {
  5. Tags *TagService
  6. }
  7. // NewBundle creates a new bundle.
  8. func NewBundle(repos *repositories.Bundle) *Bundle {
  9. bundle := &Bundle{}
  10. bundle.Tags = &TagService{tags: repos.Tags}
  11. return bundle
  12. }