goworld: github.com/xiaonanln/goworld/engine/storage/storage_common Index | Files

package storagecommon

import "github.com/xiaonanln/goworld/engine/storage/storage_common"


Package Files


type EntityStorage Uses

type EntityStorage interface {
    List(typeName string) ([]common.EntityID, error)
    Write(typeName string, entityID common.EntityID, data interface{}) error
    Read(typeName string, entityID common.EntityID) (interface{}, error)
    Exists(typeName string, entityID common.EntityID) (bool, error)
    IsEOF(err error) bool

EntityStorage defines the interface of entity storage backends

Package storagecommon imports 1 packages (graph) and is imported by 6 packages. Updated 2017-08-27. Refresh now. Tools for package owners.