Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustOpen ¶
func MustOpen(dataSource string) store.TiddlerStore
MustOpen opens a dynamoDB store at storePath, creating tables if needed, and returns a TiddlerStore.
func NewDynamodbStore ¶
func NewDynamodbStore(url string) *dynamodbStore
NewDynamodbStore requires an URL to the dynamoDB instance and returns an object which implements TiddlerStore
Types ¶
type TiddlerData ¶
type TiddlerData struct {
// contains filtered or unexported fields
}
TiddlerData is the structure representing the tiddler itself
func NewTiddlerData ¶
func NewTiddlerData(store *dynamodbStore, tableName string) *TiddlerData
NewTiddlerData returns a pointer to a TiddlerData
func (*TiddlerData) CreateTable ¶
func (t *TiddlerData) CreateTable() error
CreateTable creates the table in which the tiddlers should be stored in. If the table exists, then the method just returns with no error
func (*TiddlerData) Delete ¶
func (t *TiddlerData) Delete(key string) error
Delete deletes a tiddler from the table
type TiddlerHistory ¶
type TiddlerHistory struct {
// contains filtered or unexported fields
}
TiddlerHistory is the DynamoDB table containing revisions
func NewTiddlerHistory ¶
func NewTiddlerHistory(store *dynamodbStore, tableName string) *TiddlerHistory
NewTiddlerHistory returns a pointer to a TiddlerHistory object
func (*TiddlerHistory) CreateTable ¶
func (t *TiddlerHistory) CreateTable() error
CreateTable creates the table in which the tiddlers history should be stored in. If the table exists, then the method just returns with no error
type TiddlerRevision ¶
TiddlerRevision stores a revision of a tiddler