Documentation ¶
Overview ¶
Package labelgraph implements DVID support for data using the underlying graph storage engine.
Index ¶
- Constants
- func NewTransactionGroup(log *transactionLog, current_requestor_id uint64) *transactionGroup
- func NewTransactionLog() *transactionLog
- type Data
- func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error
- func (d *Data) Equals(d2 *Data) bool
- func (d *Data) ExtractGraph(r *http.Request, disableSchema bool) (*LabelGraph, error)
- func (d *Data) GobDecode(b []byte) error
- func (d *Data) GobEncode() ([]byte, error)
- func (d *Data) Help() string
- func (d *Data) MarshalJSON() ([]byte, error)
- func (d *Data) ServeHTTP(uuid dvid.UUID, ctx *datastore.VersionedCtx, w http.ResponseWriter, ...)
- type LabelGraph
- type Type
Constants ¶
const ( Version = "0.1" RepoURL = "github.com/janelia-flyem/dvid/datatype/labelgraph" TypeName = "labelgraph" )
Variables ¶
This section is empty.
Functions ¶
func NewTransactionGroup ¶
func NewTransactionGroup(log *transactionLog, current_requestor_id uint64) *transactionGroup
NewTransactionGroup returns a pointer to a new transaction group
func NewTransactionLog ¶
func NewTransactionLog() *transactionLog
NewTransactionLog creats a pointer to transaction log, initializing relevant maps
Types ¶
type Data ¶
Data embeds the datastore's Data and extends it with transaction properties (default values are okay after deserializing).
func (*Data) ExtractGraph ¶
ExtractGraph takes the client's supplied JSON, verifies that it conforms to the schema, and loads it into the LabelGraph data structure
func (*Data) MarshalJSON ¶
type LabelGraph ¶
type LabelGraph struct { Transactions []transactionItem // transaction ids associated with vertices Vertices []labelVertex Edges []labelEdge }
LabelGraph encodes data exchanged with a client
type Type ¶
Type embeds the datastore's Type to create a unique type for labelgraph functions.
func NewType ¶
func NewType() *Type
NewDatatype returns a pointer to a new keyvalue Datatype 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.