Liking cljdoc? Tell your friends :D
Clojure only.

teleward.state.api


IStatecljprotocol

del-attrclj

(del-attr state chat-id user-id attr)

Delete a single attrubute.

Delete a single attrubute.

del-attrsclj

(del-attrs state chat-id user-id)

Delete all the attrubutes.

Delete all the attrubutes.

filter-by-attrclj

(filter-by-attr state attr op value)

Filter rows by an attribute, a binary operator (e.g <, >, =, etc) and a value. Must return triples [chat-id, user-id, attrs]

Filter rows by an attribute, a binary operator
(e.g <, >, =, etc) and a value.
Must return triples [chat-id, user-id, attrs]

get-attrclj

(get-attr state chat-id user-id attr)

Set multiple attributes at once.

Set multiple attributes at once.

get-attrsclj

(get-attrs state chat-id user-id)

Get all the attributes at once.

Get all the attributes at once.

inc-attrclj

(inc-attr state chat-id user-id attr)

Increase an integer attribute.

Increase an integer attribute.

set-attrclj

(set-attr state chat-id user-id attr val)

Set a single attribute.

Set a single attribute.

set-attrsclj

(set-attrs state chat-id user-id mapping)

Set multiple attributes at once.

Set multiple attributes at once.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close