store

package
v0.0.0-...-3c3391d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRoom

func CreateRoom()

CreateRoom ...

func DeleteRoom

func DeleteRoom()

DeleteRoom ...

func ListRooms

func ListRooms(tx ReadTx, bys ...By) ([]*api.Room, error)

ListRooms ...

func UpdateRoom

func UpdateRoom()

UpdateRoom ...

Types

type By

type By interface {
	// contains filtered or unexported methods
}

By is an interface type passed to Find methods. Implementations must be defined in this package.

func ByName

func ByName(name string) By

ByName creates an object to pass to Find to select by name.

type IndexSchema

type IndexSchema struct {
	Name         string
	AllowMissing bool
	Unique       bool
}

IndexSchema contains the schema for an index

type Object

type Object interface {
	ID() string
	JSONData() (string, error)
	SetContent(jsonData string) error
}

Object ...

type ObjectConfig

type ObjectConfig struct {
	Name     string
	Table    *TableSchema
	Objecter func() Object
}

ObjectConfig ...

type ReadTx

type ReadTx interface {
	// contains filtered or unexported methods
}

ReadTx ...

type RedisStore

type RedisStore struct {
	// contains filtered or unexported fields
}

RedisStore ...

func NewRedisStore

func NewRedisStore() *RedisStore

NewRedisStore ...

type TableSchema

type TableSchema struct {
	Name    string
	Indexes map[string]*IndexSchema
}

TableSchema ...

type Tx

type Tx interface {
	ReadTx
	// contains filtered or unexported methods
}

Tx is a read/write transaction. Note that transaction does not imply any internal batching. The purpose of this transaction is to give the user a guarantee that its changes won't be visible to other transactions until the transaction is over.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL