The file store needs to deal with versioning and meta-data. This is achieved using gitty.pl, a git-like content-base store that lacks git's notion of a tree. I.e., all files are considered individual and have their own version.
GET
, POST
, PUT
and DELETE
.409
Conflict
pagefollow(DocID, ProfileID, [update,chat])
if the user
wishes to follow the file associated with Commit.The meta_data/5 version is used to add information about a fork.
gitty/File
in the config directory.storage_file(+File, -Data, -Meta)
is semidet.
% storage_meta_data(+File, -Meta)
is semidet.
True if File is known in the store. @arg Data is a string holding the content of the file @arg Meta is a dict holding the meta data about the file.
true
(default), reload the file if the user saves it.files
driver. For database drivers this is supposed to be
handled by the database.files
driver. For database drivers this is supposed to be
handled by the database.pl
, swinb
or lnk
me
must be
owned by current usertime
(default), name
, author
or type
Reply is a JSON object containing count
(total matches),
cpu
(CPU time) and matches
(list of matching sources)
tag
, user
, type
, string
or regex
.
This is a poor men's solution to keep the client cache consistent. Need to think about a better way to cache searches client and/or server side.
The following predicates are exported, but not or incorrectly documented.