summaryrefslogtreecommitdiff
path: root/src/rabbit_types.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-12-05 11:36:11 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-12-05 11:36:11 +0000
commit1977561b78a0b75400e683db860bf412445224af (patch)
tree7c0543204862ea4e0bcc43f3998d10bd1d2bbce8 /src/rabbit_types.erl
parentf106429bc42ff46944790acc0a8c917db9ff9405 (diff)
parentd205a4285ca02d12493ac0dd0f5256af4294723c (diff)
downloadrabbitmq-server-1977561b78a0b75400e683db860bf412445224af.tar.gz
stable to default
Diffstat (limited to 'src/rabbit_types.erl')
-rw-r--r--src/rabbit_types.erl14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/rabbit_types.erl b/src/rabbit_types.erl
index ba48867a..039568df 100644
--- a/src/rabbit_types.erl
+++ b/src/rabbit_types.erl
@@ -27,7 +27,7 @@
vhost/0, ctag/0, amqp_error/0, r/1, r2/2, r3/3, listener/0,
binding/0, binding_source/0, binding_destination/0,
amqqueue/0, exchange/0,
- connection/0, protocol/0, user/0, internal_user/0,
+ connection/0, protocol/0, auth_user/0, user/0, internal_user/0,
username/0, password/0, password_hash/0,
ok/1, error/1, ok_or_error/1, ok_or_error2/2, ok_pid_or_error/0,
channel_exit/0, connection_exit/0, mfargs/0, proc_name/0,
@@ -131,11 +131,15 @@
-type(protocol() :: rabbit_framing:protocol()).
+-type(auth_user() ::
+ #auth_user{username :: username(),
+ tags :: [atom()],
+ impl :: any()}).
+
-type(user() ::
- #user{username :: username(),
- tags :: [atom()],
- auth_backend :: atom(),
- impl :: any()}).
+ #user{username :: username(),
+ tags :: [atom()],
+ authz_backends :: [{atom(), any()}]}).
-type(internal_user() ::
#internal_user{username :: username(),