Class: EventStoreClient::GRPC::Commands::Command
- Inherits:
-
Object
- Object
- EventStoreClient::GRPC::Commands::Command
show all
- Includes:
- Configuration
- Defined in:
- lib/event_store_client/adapters/grpc/commands/command.rb
Direct Known Subclasses
PersistentSubscriptions::Create, PersistentSubscriptions::Delete, PersistentSubscriptions::Read, PersistentSubscriptions::Update, Projections::Create, Projections::Delete, Projections::Update, Streams::Append, Streams::Delete, Streams::LinkTo, Streams::Read, Streams::ReadAll, Streams::Tombstone
Class Method Summary
collapse
Instance Method Summary
collapse
#config
Class Method Details
.inherited(klass) ⇒ Object
Instance Method Details
35
36
37
38
39
|
# File 'lib/event_store_client/adapters/grpc/commands/command.rb', line 35
def metadata
credentials =
Base64.encode64("#{config.eventstore_user}:#{config.eventstore_password}")
{ 'authorization' => "Basic #{credentials.delete("\n")}" }
end
|