Documentation ¶
Overview ¶
Package tarsupervoxels implements DVID support for data blobs associated with supervoxels.
Index ¶
- Constants
- func DecodeTKey(tk storage.TKey) (supervoxel uint64, ext string, err error)
- func NewTKey(supervoxel uint64, ext string) (storage.TKey, error)
- type Data
- func (d *Data) DeleteData(uuid dvid.UUID, supervoxel uint64) error
- func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error
- func (d *Data) Equals(d2 *Data) bool
- func (d *Data) GetData(uuid dvid.UUID, supervoxel uint64) ([]byte, bool, error)
- func (d *Data) GetSyncSubs(synced dvid.Data) (datastore.SyncSubs, error)
- func (d *Data) GobDecode(b []byte) error
- func (d *Data) GobEncode() ([]byte, error)
- func (d *Data) Help() string
- func (d *Data) JSONString() (jsonStr string, err error)
- func (d *Data) MarshalJSON() ([]byte, error)
- func (d *Data) PutData(uuid dvid.UUID, supervoxel uint64, data []byte) error
- func (d *Data) ServeHTTP(uuid dvid.UUID, ctx *datastore.VersionedCtx, w http.ResponseWriter, ...)
- type Type
Constants ¶
const ( Version = "0.1" RepoURL = "github.com/janelia-flyem/dvid/datatype/tarsupervoxels" TypeName = "tarsupervoxels" )
Variables ¶
This section is empty.
Functions ¶
func DecodeTKey ¶
DecodeTKey returns the supervoxel id corresponding to the type-specific ke.y
Types ¶
type Data ¶
type Data struct { *datastore.Data // Extension is the expected extension for blobs uploaded. // If no extension is given, it is "dat" by default. Extension string }
Data embeds the datastore's Data and extends it with keyvalue properties (none for now).
func GetByUUIDName ¶
GetByUUIDName returns a pointer to tarsupervoxels data given a UUID and data name.
func (*Data) DeleteData ¶
DeleteData deletes upervoxel data
func (*Data) GetData ¶
GetData gets data for a supervoxel where the returned bool is true if data is found
func (*Data) GetSyncSubs ¶
GetSyncSubs implements the datastore.Syncer interface, but tarsupervoxels doesn't need to process events.
func (*Data) JSONString ¶
JSONString returns the JSON for this Data's configuration
func (*Data) MarshalJSON ¶
type Type ¶
Type embeds the datastore's Type to create a unique type for keyvalue functions.
func NewType ¶
func NewType() *Type
NewType returns a pointer to a new keyvalue Type with default values set.
func (*Type) NewDataService ¶
func (dtype *Type) NewDataService(uuid dvid.UUID, id dvid.InstanceID, name dvid.InstanceName, c dvid.Config) (datastore.DataService, error)
NewDataService returns a pointer to new keyvalue data with default values.