module GRPC::Interceptors

Overview

Interceptors contains helpers for building interceptor chains. The first interceptor in the array executes outermost (first on the way in, last on the way out).

Defined in:

grpc/interceptor.cr

Class Method Summary

Class Method Detail

def self.build_client_chain(interceptors : Array(ClientInterceptor), base : UnaryClientCall) : UnaryClientCall #

build_client_chain wraps base with interceptors. Returns a single UnaryClientCall that runs interceptors[0] first.


[View source]
def self.build_client_chain(interceptors : Array(ClientInterceptor), base : ServerStreamClientCall) : ServerStreamClientCall #

[View source]
def self.build_client_chain(interceptors : Array(ClientInterceptor), base : LiveClientStreamClientCall) : LiveClientStreamClientCall #

[View source]
def self.build_client_chain(interceptors : Array(ClientInterceptor), base : LiveBidiStreamClientCall) : LiveBidiStreamClientCall #

[View source]
def self.build_server_chain(interceptors : Array(ServerInterceptor), base : UnaryServerCall) : UnaryServerCall #

build_server_chain wraps base with interceptors. Returns a single call proc that runs interceptors[0] first.


[View source]
def self.build_server_chain(interceptors : Array(ServerInterceptor), base : ServerStreamServerCall) : ServerStreamServerCall #

[View source]
def self.build_server_chain(interceptors : Array(ServerInterceptor), base : ClientStreamServerCall) : ClientStreamServerCall #

[View source]
def self.build_server_chain(interceptors : Array(ServerInterceptor), base : BidiStreamServerCall) : BidiStreamServerCall #

[View source]