Class: Restate::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/restate/config.rb

Overview

Global SDK configuration. Set via Restate.configure.

Examples:

Restate.configure do |c|
  c.ingress_url = "http://localhost:8080"
  c.admin_url   = "http://localhost:9070"
end

# Then use the pre-configured client:
Restate.client.service(Greeter).greet("World")

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_headersObject

Default headers sent with every admin request.



26
27
28
# File 'lib/restate/config.rb', line 26

def admin_headers
  @admin_headers
end

#admin_urlObject

Restate admin URL (for deployments, invocation management).



20
21
22
# File 'lib/restate/config.rb', line 20

def admin_url
  @admin_url
end

#ingress_headersObject

Default headers sent with every ingress request.



23
24
25
# File 'lib/restate/config.rb', line 23

def ingress_headers
  @ingress_headers
end

#ingress_urlObject

Restate ingress URL (for invoking services).



17
18
19
# File 'lib/restate/config.rb', line 17

def ingress_url
  @ingress_url
end