package
0.0.0-20200625043019-ec8dcbf1eed9
Repository: https://github.com/kafkaesque-io/pubsub-function.git
Documentation: pkg.go.dev

# Functions

AuthHeaderRequired is a very weak auth to verify token existence only.
AuthVerifyJWT Authenticate middleware function.
LimitRate rate limites against http handler use semaphore as a simple rate limiter.
NewSema creates a new semaphore.
NoAuth bypasses the auth middleware.

# Variables

Rate is the default global rate limit This rate only limits the rate hitting on endpoint It does not limit the underline resource access.

# Structs

Sema the semaphore object used internally.

# Type aliases

AuthFunc is a function type to allow pluggable authentication middleware.