Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PigeonAuthStreamServerInteceptor ¶
func PigeonAuthStreamServerInteceptor(pigeonProvider func() map[string]string, prefix string, ) grpc.StreamServerInterceptor
PigeonAuthStreamServerInteceptor returns a new StreamServerInterceptor which authenticates requests from pigeons using a token->name map provider on the specified method prefix. Note that pigeonProvider will be called concurrently on each request to receive new tokens once they are added.
func PigeonNameFromCtx ¶
PigeonNameFromCtx gets the pigeon name set in PigeonAuth interceptors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.