Class: Restate::Config
- Inherits:
-
Object
- Object
- Restate::Config
- Defined in:
- lib/restate/config.rb
Overview
Global SDK configuration. Set via Restate.configure.
Instance Attribute Summary collapse
-
#admin_headers ⇒ Object
Default headers sent with every admin request.
-
#admin_url ⇒ Object
Restate admin URL (for deployments, invocation management).
-
#ingress_headers ⇒ Object
Default headers sent with every ingress request.
-
#ingress_url ⇒ Object
Restate ingress URL (for invoking services).
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
28 29 30 31 32 33 |
# File 'lib/restate/config.rb', line 28 def initialize @ingress_url = 'http://localhost:8080' @admin_url = 'http://localhost:9070' @ingress_headers = {} @admin_headers = {} end |
Instance Attribute Details
#admin_headers ⇒ Object
Default headers sent with every admin request.
26 27 28 |
# File 'lib/restate/config.rb', line 26 def admin_headers @admin_headers end |
#admin_url ⇒ Object
Restate admin URL (for deployments, invocation management).
20 21 22 |
# File 'lib/restate/config.rb', line 20 def admin_url @admin_url end |
#ingress_headers ⇒ Object
Default headers sent with every ingress request.
23 24 25 |
# File 'lib/restate/config.rb', line 23 def ingress_headers @ingress_headers end |
#ingress_url ⇒ Object
Restate ingress URL (for invoking services).
17 18 19 |
# File 'lib/restate/config.rb', line 17 def ingress_url @ingress_url end |