registry

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL