summaryrefslogtreecommitdiff
path: root/src/rabbit_access_control.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-11-24 11:37:19 +0000
committerSimon MacMullen <simon@rabbitmq.com>2010-11-24 11:37:19 +0000
commit1327df8fc4821abd824c23242bcf07236fd5df06 (patch)
tree6fd06cb3a7d8daafb3db0c4cd59afc45b95ee6a6 /src/rabbit_access_control.erl
parent052b4d281b7aa73ef321f85504806e33d65d4e62 (diff)
downloadrabbitmq-server-1327df8fc4821abd824c23242bcf07236fd5df06.tar.gz
Spec stuff.
Diffstat (limited to 'src/rabbit_access_control.erl')
-rw-r--r--src/rabbit_access_control.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl
index c747a453..3a68346c 100644
--- a/src/rabbit_access_control.erl
+++ b/src/rabbit_access_control.erl
@@ -48,7 +48,7 @@
-ifdef(use_specs).
--export_type([username/0, password/0, password_hash/0]).
+-export_type([username/0, password/0, password_hash/0, permission_atom/0]).
-type(permission_atom() :: 'configure' | 'read' | 'write').
-type(username() :: binary()).
@@ -67,7 +67,7 @@
(rabbit_types:user(), rabbit_types:vhost())
-> 'ok' | rabbit_types:channel_exit()).
-spec(check_resource_access/3 ::
- (username(), rabbit_types:r(atom()), permission_atom())
+ (rabbit_types:user(), rabbit_types:r(atom()), permission_atom())
-> 'ok' | rabbit_types:channel_exit()).
-spec(add_user/2 :: (username(), password()) -> 'ok').
-spec(delete_user/1 :: (username()) -> 'ok').
@@ -77,7 +77,7 @@
-spec(clear_admin/1 :: (username()) -> 'ok').
-spec(list_users/0 :: () -> [{username(), boolean()}]).
-spec(lookup_user/1 ::
- (username()) -> rabbit_types:ok(rabbit_types:user())
+ (username()) -> rabbit_types:ok(rabbit_types:internal_user())
| rabbit_types:error('not_found')).
-spec(add_vhost/1 :: (rabbit_types:vhost()) -> 'ok').
-spec(delete_vhost/1 :: (rabbit_types:vhost()) -> 'ok').