mw

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 7 Imported by: 0

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

func PigeonNameFromCtx(ctx context.Context) string

PigeonNameFromCtx gets the pigeon name set in PigeonAuth interceptors.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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