2
0

database.go 316 B

12345678910111213141516171819
  1. package db
  2. import (
  3. "github.com/gshopify/service-wrapper/model"
  4. "gshopper.com/gshopify/shop/graphql/generated"
  5. "time"
  6. )
  7. const (
  8. cacheTimeout = time.Hour
  9. cacheCapacity = 4096
  10. )
  11. type Database interface {
  12. Ping() error
  13. Close() error
  14. Location(ln model.LanguageCode, id string) (*generated.Location, error)
  15. }