Binned resource() type

This commit is contained in:
Ben Hood 2008-09-27 21:55:38 +01:00
parent c24ce8446f
commit 358f4d29e0
2 changed files with 1 additions and 5 deletions

View File

@ -84,10 +84,6 @@
-type(user() ::
#user{username :: username(),
password :: password()}).
-type(resource() ::
#resource{virtual_host :: vhost(),
kind :: 'queue' | 'exchange',
name :: resource_name()}).
-type(amqqueue() ::
#amqqueue{name :: queue_name(),
durable :: bool(),

View File

@ -68,7 +68,7 @@
-spec(get_config/2 :: (atom(), A) -> A).
-spec(set_config/2 :: (atom(), any()) -> 'ok').
-spec(dirty_read/1 :: ({atom(), any()}) -> {'ok', any()} | not_found()).
-spec(r/3 :: (vhost() | resource(), K, resource_name()) -> r(K)
-spec(r/3 :: (vhost() | r(atom()), K, resource_name()) -> r(K)
when is_subtype(K, atom())).
-spec(r/2 :: (vhost(), K) -> #resource{virtual_host :: vhost(),
kind :: K,