LavinMQ::MQTT::PermissionGroup
Inherits JSON::Serializable < Reference < Object
Constants
DEFAULT_NAME = "default"
IDENTIFIER_PATTERN = /\A[A-Za-z0-9-]+\z/
Rule identifiers make individual rules addressable in the HTTP API.
NAME_PATTERN = /\A[A-Za-z0-9_-]{1,255}\z/
Group names travel in URL paths; the charset keeps them unambiguous there.
Constructors
default(vhost : String) : self
The group every vhost gets until somebody configures it: every user may read and write every topic.
new(name : String, vhost : String, members : Array(String) = Array(String).new, rules : Array(LavinMQ::MQTT::PermissionGroup::Rule) = Array(Rule).new)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
members
Sourcename
Sourcerules
Sourcevalidate!
Sourcevhost
Source