Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CacheSize gives the number of elements in LRU Cache
CacheSize = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTypeStore ¶
type ContentTypeStore struct {
// contains filtered or unexported fields
}
ContentTypeStore represents the content type store
func NewContentTypeStore ¶
func NewContentTypeStore(db *storm.DB) *ContentTypeStore
NewContentTypeStore is the factory for ContentTypeStore
func (*ContentTypeStore) Delete ¶
func (s *ContentTypeStore) Delete(c contenttype.ContentType) error
Delete removes a single contenttype
func (*ContentTypeStore) FindAll ¶
func (s *ContentTypeStore) FindAll() ([]contenttype.ContentType, error)
FindAll returns a list of all content types
func (*ContentTypeStore) Get ¶
func (s *ContentTypeStore) Get(key string) (contenttype.ContentType, error)
Get return a single contenttype entry
func (*ContentTypeStore) Put ¶
func (s *ContentTypeStore) Put(c contenttype.ContentType) error
Put inserts or creates a new contenttype
type RecordStore ¶
type RecordStore struct {
// contains filtered or unexported fields
}
RecordStore is the store for records
func NewRecordStore ¶
func NewRecordStore(db *storm.DB, cs *ContentTypeStore) *RecordStore
NewRecordStore creates a new recordstore
func (*RecordStore) Delete ¶
func (s *RecordStore) Delete(r record.Record) error
Delete removes a single record and all revesions
func (*RecordStore) Get ¶
func (s *RecordStore) Get(contentType, key string) (record.Record, error)
Get return a single record entry
func (*RecordStore) GetRevisions ¶
GetRevisions returns a list of revisions for a given record
Click to show internal directories.
Click to hide internal directories.