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

package storagecommon

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

Index

Package Files

storage_common.go

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)
    Close()
    IsEOF(err error) bool
}

EntityStorage defines the interface of entity storage backends

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