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.

13 lines
972 B

  1. package storage
  2. type Store interface {
  3. Init(param map[string]interface{}) error // init the backend and connect to it
  4. Shutdown() error // shutdown the backend and connect to it
  5. StoreObject(universe_bucket []byte, galaxy_bucket []byte, solar_bucket []byte, key []byte, data []byte) error // store object to a specific universe
  6. LoadObject(universe_bucket []byte, galaxy_bucket []byte, solar_bucket []byte, key []byte) ([]byte, error) // load object from a specific universe
  7. StoreUint64(universe_bucket []byte, galaxy_bucket []byte, solar_bucket []byte, key []byte, data uint64) error // store
  8. LoadUint64(universe_bucket []byte, galaxy_bucket []byte, solar_bucket []byte, key []byte) (uint64, error) // load object
  9. }
  10. //var Store Backend_Store// the system shouls chooose a backend at start Time