Documentation
¶
Index ¶
- Constants
- func Delete(locale string) error
- func List(locale string, limit int) (map[string]bool, error)
- func Load(locale string, unmarshallStruct interface{}) (interface{}, error)
- func Save(kekLocale string, content interface{}) error
- type Doc
- func (kd Doc) Delete(id string) error
- func (kd Doc) Find(q DocQuery) ([]Doc, error)
- func (kd Doc) Get(id string, withRevChain bool) (Doc, error)
- func (kd Doc) New(attrs map[string]interface{}) (Doc, error)
- func (kd *Doc) SaveCollectionIds() error
- func (kd Doc) SetStore(store kekstore.Storer) Doc
- func (kd Doc) Store() kekstore.Storer
- func (kd Doc) Update(id string, attrs map[string]interface{}, patch bool) (Doc, error)
- type DocQuery
- type SearchQuery
Constants ¶
View Source
const DOC_DIR = "d/"
View Source
const FIELD_DIR = "f/"
View Source
const KEK_DIR = "/.kek/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doc ¶
type Doc struct { Id string `json:"id"` Name string `json:"name"` KekVersion string `json:"kek_version"` Description string `json:"description"` Schema string `json:"$schema"` Attributes map[string]interface{} `json:"attributes"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Revisions revchain.ChainMaker `json:"revisions"` Rev string `json:"rev"` RootId string `json:"root_id"` CopyIds map[string]bool `json:"copy_ids"` CollectionIds map[string]bool `json:"collections"` // contains filtered or unexported fields }
func (Doc) New ¶
New will create a kekdoc, index the field attributes, map the classes & start the revision chain
func (*Doc) SaveCollectionIds ¶
type SearchQuery ¶
Click to show internal directories.
Click to hide internal directories.