class

LavinMQ::VHostStore

Inherits Enumerable < Reference < Object

Constants

Log = LavinMQ::Log.for("vhost_store")

Constructors

new(data_dir : String, users : Auth::UserStore, replicator : Clustering::Replicator | Nil, persister : Persister)
Source

Instance methods

[](name : String) : VHost
Source
[]?(name : String) : VHost | Nil
Source
close
Source
create(name : String, user : Auth::BaseUser = @users.default_user, description = "", tags = Array(String).new(0), save : Bool = true, mqtt_default_group : Bool = true)
Source
delete(name) : VHost | Nil
Source
deleted_stats
Source
each

Must yield this collection's elements to the block.

Source
each_value
Source
first_value?
Source
has_key?(name : String) : Bool
Source
save!
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
to_json(json : JSON::Builder)
Source
values
Source