class LavinMQ::UserStore

Included Modules

Defined in:

lavinmq/user_store.cr

Constant Summary

DIRECT_USER = "__direct"
Log = LavinMQ::Log.for("user_store")

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(data_dir : String, replicator : Clustering::Replicator) #

[View source]

Class Method Detail

def self.hidden?(name) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def add(name, password_hash, password_algorithm, tags = Array(Tag).new, save = true) #

[View source]
def add_permission(user, vhost, config, read, write) #

[View source]
def create(name, password, tags = Array(Tag).new, save = true) #

Adds a user to the use store


[View source]
def default_user : User #

[View source]
def delete(name, save = true) : User | Nil #

[View source]
def direct_user #

[View source]
def each(&) #
Description copied from module Enumerable({String, LavinMQ::User})

Must yield this collection's elements to the block.


[View source]
def rm_permission(user, vhost) #

[View source]
def rm_vhost_permissions_for_all(vhost) #

[View source]
def save! #

[View source]
def to_json(json : JSON::Builder) #

[View source]