api.hrl 716 B

123456789101112131415161718
  1. -ifndef(API_HRL).
  2. -define(API_HRL, true).
  3. -define(API,[start/0,stop/0,leave/0,leave/1,
  4. join/0,join/1,modules/0,cursors/0,get/2,get/3,put/1,put/2,index/3,delete/2,
  5. table/1,tables/0,dir/0,initialize/2,seq/2,all/1,all/2,count/1,ver/0]).
  6. -include("metainfo.hrl").
  7. -spec seq(atom() | [], integer() | []) -> term().
  8. -spec count(atom()) -> integer().
  9. -spec dir() -> list({'table',atom()}).
  10. -spec ver() -> {'version',string()}.
  11. -spec leave() -> ok.
  12. -spec join() -> ok | {error,any()}.
  13. -spec join(Node :: string()) -> [{atom(),any()}].
  14. -spec modules() -> list(atom()).
  15. -spec cursors() -> list({atom(),list(atom())}).
  16. -spec tables() -> list(#table{}).
  17. -spec table(Tab :: atom()) -> #table{}.
  18. -endif.