Documentation ¶
Index ¶
Constants ¶
View Source
const ApiKeyHeader = "X-Api-Key"
Variables ¶
This section is empty.
Functions ¶
func MAuth ¶
func MAuth(m Manager, logger log.Logger) *middleware.NamedMiddleware
Types ¶
type KeyManager ¶
type KeyManager struct {
// contains filtered or unexported fields
}
func NewKeyManager ¶
func NewKeyManager(r io.Reader, healthcheckKey string) (*KeyManager, error)
func (*KeyManager) IsAllowed ¶
func (k *KeyManager) IsAllowed(t *token) bool
Click to show internal directories.
Click to hide internal directories.