(MODAClouds) Object store

Warning

This document is abandoned!

Links

Operations

func ObjectCreate
    (session & Session, object & Object)
    (error error)

func ObjectSelect
    (session & Session, key & ObjectKey)
    (object & Object, error error)

func ObjectUpdate
    (session & Session, object & Object)
    (error error)

func ObjectDestroy
    (session & Session, object & ObjectKey)
    (error error)

func IndexSelect1
    (session & Session, store Identifier, index Identifier,
        type ContentType, data Data)
    (IndexCursor cursor, error error)

func IndexSelect2
    (session & Session, store Identifier, index Identifier,
        type ContentType, minimum Data, minimumInclusive bool, maximum Data, maximumInclusive bool)
    (IndexCursor cursor, error error)

type Object struct {
    Key ObjectKey
    Data ObjectData
    Indices []ObjectIndex
    Links []ObjectLink
}

type ObjectKey struct {
    Store Identifier
    Collection Identifier
    Object Identifier
}

type ObjectData struct {
    Type DataType
    Data Data
}

type ObjectIndex struct {
    Index Identifier
    Type DataType
    Data Data
}

type ObjectLink struct {
    Link Identifier
    Object ObjectKey
}

type Identifier string
type Revision string
type DataType string
type Data interface{}
type IndexCursor interface {
    ...
}