Skip to content

Commit

Permalink
Align UBF's predefined and builtin types with EEP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
norton committed Sep 2, 2012
1 parent 3c3fe01 commit 8af1eda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ubf_redis_types_plugin.con
Expand Up @@ -60,7 +60,7 @@ time_t() :: secs();
msecs_time_t() :: msecs(); msecs_time_t() :: msecs();
timestamp() :: time_t(); timestamp() :: time_t();
msecs_timestamp() :: msecs_time_t(); msecs_timestamp() :: msecs_time_t();
timeout() :: msecs(); timeout_msecs() :: msecs();


db() :: non_neg_integer(); db() :: non_neg_integer();
host() :: binary(); host() :: binary();
Expand Down Expand Up @@ -114,7 +114,7 @@ expireat_res() :: 1 | 0;
keys_req() :: {'KEYS', pattern()}; keys_req() :: {'KEYS', pattern()};
keys_res() :: [key()] `keys`; keys_res() :: [key()] `keys`;


migrate_req() :: {'MIGRATE', host(), port(), key(), db(), timeout()}; migrate_req() :: {'MIGRATE', host(), port(), key(), db(), timeout_msecs()};
migrate_res() :: not_implemented_migrate(); %% ok() | error(); migrate_res() :: not_implemented_migrate(); %% ok() | error();


move_req() :: {'MOVE', key(), db()}; move_req() :: {'MOVE', key(), db()};
Expand Down Expand Up @@ -281,13 +281,13 @@ hvals_res() :: [value()] | error() `values`; %% undocumented error()




%%% lists %%% lists
blpop_req() :: {'BLPOP', [key()]+, timeout()}; blpop_req() :: {'BLPOP', [key()]+, timeout_msecs()};
blpop_res() :: keyval()?; blpop_res() :: keyval()?;


brpop_req() :: {'BRPOP', [key()]+, timeout()}; brpop_req() :: {'BRPOP', [key()]+, timeout_msecs()};
brpop_res() :: keyval()?; brpop_res() :: keyval()?;


brpoplpush_req() :: {'BRPOPLPUSH', key(), key(), timeout()}; brpoplpush_req() :: {'BRPOPLPUSH', key(), key(), timeout_msecs()};
brpoplpush_res() :: value()?; brpoplpush_res() :: value()?;


lindex_req() :: {'LINDEX', key(), integer()}; lindex_req() :: {'LINDEX', key(), integer()};
Expand Down Expand Up @@ -556,10 +556,10 @@ time_res() :: not_implemented_time(); %% {time_t(), msecs_time_t()};


%%% ubf types %%% ubf types
ubf_info_req() :: 'info'; ubf_info_req() :: 'info';
ubf_info_res() :: string(); ubf_info_res() :: ubfstring();


ubf_description_req() :: 'description'; ubf_description_req() :: 'description';
ubf_description_res() :: string(); ubf_description_res() :: ubfstring();


ubf_contract_req() :: 'contract'; ubf_contract_req() :: 'contract';
ubf_contract_res() :: term(). ubf_contract_res() :: term().

0 comments on commit 8af1eda

Please sign in to comment.