handler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainHandler

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

DomainHandler handles domain management API requests

func NewDomainHandler

func NewDomainHandler(domainRepo repository.DomainRepository, logger *zap.Logger) *DomainHandler

NewDomainHandler creates a new domain handler

func (*DomainHandler) CreateDomain

func (h *DomainHandler) CreateDomain(w http.ResponseWriter, r *http.Request)

CreateDomain creates a new domain POST /api/domains

func (*DomainHandler) DeleteDomain

func (h *DomainHandler) DeleteDomain(w http.ResponseWriter, r *http.Request)

DeleteDomain deletes a domain DELETE /api/domains/{name}

func (*DomainHandler) GetDefaultTemplate

func (h *DomainHandler) GetDefaultTemplate(w http.ResponseWriter, r *http.Request)

GetDefaultTemplate returns the default domain template GET /api/domains/_default

func (*DomainHandler) GetDomain

func (h *DomainHandler) GetDomain(w http.ResponseWriter, r *http.Request)

GetDomain returns a specific domain by name GET /api/domains/{name}

func (*DomainHandler) GetDomainSecurity

func (h *DomainHandler) GetDomainSecurity(w http.ResponseWriter, r *http.Request)

GetDomainSecurity returns security configuration for a domain GET /api/domains/{name}/security

func (*DomainHandler) ListDomains

func (h *DomainHandler) ListDomains(w http.ResponseWriter, r *http.Request)

ListDomains returns all domains GET /api/domains

func (*DomainHandler) UpdateDefaultTemplate

func (h *DomainHandler) UpdateDefaultTemplate(w http.ResponseWriter, r *http.Request)

UpdateDefaultTemplate updates the default domain template PUT /api/domains/_default

func (*DomainHandler) UpdateDomain

func (h *DomainHandler) UpdateDomain(w http.ResponseWriter, r *http.Request)

UpdateDomain updates an existing domain PUT /api/domains/{name}

func (*DomainHandler) UpdateDomainSecurity

func (h *DomainHandler) UpdateDomainSecurity(w http.ResponseWriter, r *http.Request)

UpdateDomainSecurity updates security configuration for a domain PUT /api/domains/{name}/security

Jump to

Keyboard shortcuts

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