Module: KStor::Message

Defined in:
lib/kstor/message/base.rb,
lib/kstor/message.rb,
lib/kstor/message/ping.rb,
lib/kstor/message/pong.rb,
lib/kstor/message/error.rb,
lib/kstor/message/secret_list.rb,
lib/kstor/message/group_create.rb,
lib/kstor/message/secret_value.rb,
lib/kstor/message/group_created.rb,
lib/kstor/message/secret_create.rb,
lib/kstor/message/secret_delete.rb,
lib/kstor/message/secret_search.rb,
lib/kstor/message/secret_unlock.rb,
lib/kstor/message/secret_created.rb,
lib/kstor/message/secret_deleted.rb,
lib/kstor/message/secret_updated.rb,
lib/kstor/message/secret_update_meta.rb,
lib/kstor/message/secret_update_value.rb

Overview

Units of communication between server and clients.

Defined Under Namespace

Classes: Base, Error, GroupCreate, GroupCreated, Ping, Pong, RequestMissesAuthData, SecretCreate, SecretCreated, SecretDelete, SecretDeleted, SecretList, SecretSearch, SecretUnlock, SecretUpdateMeta, SecretUpdateValue, SecretUpdated, SecretValue, UnparsableResponse

Class Method Summary collapse

Class Method Details

.register_all_message_typesObject

Register new message type.



213
214
215
216
217
218
219
220
# File 'lib/kstor/message/base.rb', line 213

def register_all_message_types
  constants(false).each do |const|
    klass = const_get(const)
    next unless klass.respond_to?(:superclass) && klass.superclass == Base

    Base.register(klass)
  end
end