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
Click to show internal directories.
Click to hide internal directories.