Class: ChalkRuby::Grpc::ApiServerInterceptor

Inherits:
GRPC::ClientInterceptor
  • Object
show all
Defined in:
lib/chalk_ruby/grpc/auth_interceptor.rb

Instance Method Summary collapse

Constructor Details

#initializeApiServerInterceptor

Returns a new instance of ApiServerInterceptor.



51
52
# File 'lib/chalk_ruby/grpc/auth_interceptor.rb', line 51

def initialize()
end

Instance Method Details

#request_response(request:, call:, method:, metadata:) ⇒ Object



54
55
56
57
# File 'lib/chalk_ruby/grpc/auth_interceptor.rb', line 54

def request_response(request:, call:, method:, metadata:)
  ["x-chalk-server"] = "go-api"
  yield
end