handlers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthcheckHandler

func HealthcheckHandler(w http.ResponseWriter, r *http.Request)

Types

type AccountsHandler

type AccountsHandler struct {
	// contains filtered or unexported fields
}

func NewAccountsHandler

func NewAccountsHandler(logger *zap.Logger, accountsClient *accounts.AccountsClient) *AccountsHandler

func (*AccountsHandler) Create2FA

func (ah *AccountsHandler) Create2FA(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) CreateAccount

func (ah *AccountsHandler) CreateAccount(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Delete2FA

func (ah *AccountsHandler) Delete2FA(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Generate2FA

func (ah *AccountsHandler) Generate2FA(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Get2FA

func (ah *AccountsHandler) Get2FA(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) GetAccount

func (ah *AccountsHandler) GetAccount(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Validate2FA

func (ah *AccountsHandler) Validate2FA(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Verify2FA

func (ah *AccountsHandler) Verify2FA(w http.ResponseWriter, r *http.Request)

type Create2FABody

type Create2FABody struct {
	Secret string
}

type CreateAccountBody

type CreateAccountBody struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Role     string `json:"role"`
	Provider string `json:"provider"`
}

type DeploymentsHandler added in v1.0.1

type DeploymentsHandler struct {
	// contains filtered or unexported fields
}

func NewDeploymentsClient added in v1.0.1

func NewDeploymentsClient(logger *zap.Logger, deploymentsClient *deployments.DeploymentsClient) *DeploymentsHandler

func (*DeploymentsHandler) GetDeployments added in v1.0.1

func (dh *DeploymentsHandler) GetDeployments(w http.ResponseWriter, r *http.Request)

type Generate2FAResponse

type Generate2FAResponse struct {
	Secret string `json:"secret"`
	Image  []byte `json:"image"`
}

type Get2FAResponse

type Get2FAResponse struct {
	Status string `json:"status"`
}

type GetDeploymentsResponse added in v1.0.1

type GetDeploymentsResponse struct {
	Deployments []deployments.Deployment `json:"deployments"`
}

type Healthcheck

type Healthcheck struct {
	Healthy bool `json:"healthy"`
}

type Verify2FAResponse

type Verify2FAResponse struct {
	Verified bool `json:"verified"`
}

Jump to

Keyboard shortcuts

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