api_v1_apikey

package
v0.0.0-...-96e757f Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyHandler

type ApiKeyHandler interface {
	GetTeamApiKey(w http.ResponseWriter, r *http.Request)
	RotateTeamApiKey(w http.ResponseWriter, r *http.Request)
}

type DefaultApiKeyHandler

type DefaultApiKeyHandler struct {
	APIKeyStorage database.ApiKeyStore
}

func (*DefaultApiKeyHandler) GetTeamApiKey

func (d *DefaultApiKeyHandler) GetTeamApiKey(w http.ResponseWriter, r *http.Request)

TeamApiKey returns the API key for a specific team

func (*DefaultApiKeyHandler) RotateTeamApiKey

func (d *DefaultApiKeyHandler) RotateTeamApiKey(w http.ResponseWriter, r *http.Request)

RotateTeamApiKey rotates the API key for a specific team

Jump to

Keyboard shortcuts

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