middleware

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAPIKey

func ValidateAPIKey() gin.HandlerFunc

ValidateAPIKey determines whether or not a request is authenticated with a valid API key

Types

type AuthorizedUser

type AuthorizedUser struct {
	Name   string `bson:"name" json:"name"`
	APIKey string `bson:"api_key" json:"api_key"`
}

Jump to

Keyboard shortcuts

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