aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/ddfs_master/ddfs_tag.hrl
blob: 2920b67fc5893c59a8337a7e7f55ffce7a759f9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-type tokentype() :: 'read' | 'write'.
-type user_attr() :: [{binary(), binary()}].
% An 'internal' token is also used by internal consumers, but never stored.
-type token() :: 'null' | binary().

-type tagname() :: binary().
-type tagid() :: binary().

-type attrib() :: 'urls' | 'read_token' | 'write_token' | {'user', binary()}.

-record(tagcontent, {id :: tagid(),
                     last_modified :: binary(),
                     read_token = null :: token(),
                     write_token = null :: token(),
                     urls = [] :: [[binary()]],
                     user = [] :: user_attr()}).

-type tagcontent() :: #tagcontent{}.