Documentation ¶
Index ¶
- func DeleteClientInterceptor(index string)
- func DeleteServerInterceptor(index string)
- func GetClientInterceptor(index string) grpcmw.ClientInterceptor
- func GetServerInterceptor(index string) grpcmw.ServerInterceptor
- func SetClientInterceptor(index string, interceptor grpcmw.ClientInterceptor)
- func SetServerInterceptor(index string, interceptor grpcmw.ServerInterceptor)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClientInterceptor ¶
func DeleteClientInterceptor(index string)
DeleteClientInterceptor deletes any interceptor registered at `index`. This is thread-safe.
func DeleteServerInterceptor ¶
func DeleteServerInterceptor(index string)
DeleteServerInterceptor deletes any interceptor registered at `index`. This is thread-safe.
func GetClientInterceptor ¶
func GetClientInterceptor(index string) grpcmw.ClientInterceptor
GetClientInterceptor returns the `grpcmw.ClientInterceptor` registered at `index`. If nothing is at this `index`, it registers a new one using `grpcmw.NewClientInterceptor` and returns it. This is thread-safe.
func GetServerInterceptor ¶
func GetServerInterceptor(index string) grpcmw.ServerInterceptor
GetServerInterceptor returns the `grpcmw.ServerInterceptor` registered at `index`. If nothing is at this `index`, it registers a new one using `grpcmw.NewServerInterceptor` and returns it. This is thread-safe.
func SetClientInterceptor ¶
func SetClientInterceptor(index string, interceptor grpcmw.ClientInterceptor)
SetClientInterceptor registers `interceptor` at `index`. It replaces any interceptor that has been previously registered at this `index`. This is thread-safe.
func SetServerInterceptor ¶
func SetServerInterceptor(index string, interceptor grpcmw.ServerInterceptor)
SetServerInterceptor registers `interceptor` at `index`. It replaces any interceptor that has been previously registered at this `index`. This is thread-safe.
Types ¶
This section is empty.