settingshttp

package
v0.0.0-...-1f1dc5f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package settingshttp adapts setting and dictionary HTTP requests to the settings usecase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(group *echo.Group, handler *Handler)

Register mounts setting and dictionary routes on group.

Types

type Handler

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

Handler adapts setting and dictionary HTTP requests to the settings usecase.

func New

func New(uc *usecase.Usecase, operation OperationRecorder) *Handler

New creates a settings HTTP handler.

func (*Handler) AddDictionaryItem

func (h *Handler) AddDictionaryItem(c *echo.Context) error

AddDictionaryItem appends one dictionary item.

func (*Handler) BatchDeleteParams

func (h *Handler) BatchDeleteParams(c *echo.Context) error

BatchDeleteParams deletes system parameters by id.

func (*Handler) BatchDeleteVersions

func (h *Handler) BatchDeleteVersions(c *echo.Context) error

BatchDeleteVersions deletes release records by id.

func (*Handler) CreateDictionary

func (h *Handler) CreateDictionary(c *echo.Context) error

CreateDictionary creates a dictionary.

func (*Handler) CreateParam

func (h *Handler) CreateParam(c *echo.Context) error

CreateParam creates one system parameter.

func (*Handler) CreateVersion

func (h *Handler) CreateVersion(c *echo.Context) error

CreateVersion creates a release record.

func (*Handler) DeleteConfig

func (h *Handler) DeleteConfig(c *echo.Context) error

DeleteConfig deletes a system config.

func (*Handler) DeleteDictionary

func (h *Handler) DeleteDictionary(c *echo.Context) error

DeleteDictionary deletes a dictionary.

func (*Handler) DeleteDictionaryItem

func (h *Handler) DeleteDictionaryItem(c *echo.Context) error

DeleteDictionaryItem deletes one dictionary item.

func (*Handler) DeleteParam

func (h *Handler) DeleteParam(c *echo.Context) error

DeleteParam deletes one system parameter.

func (*Handler) DeleteVersion

func (h *Handler) DeleteVersion(c *echo.Context) error

DeleteVersion deletes a release record.

func (*Handler) DownloadVersion

func (h *Handler) DownloadVersion(c *echo.Context) error

DownloadVersion returns one release record as a JSON attachment.

func (*Handler) ExportDictionaries

func (h *Handler) ExportDictionaries(c *echo.Context) error

ExportDictionaries downloads all dictionaries as a JSON bundle.

func (*Handler) ExportVersion

func (h *Handler) ExportVersion(c *echo.Context) error

ExportVersion creates a portable version bundle from selected resources.

func (*Handler) FindParam

func (h *Handler) FindParam(c *echo.Context) error

FindParam returns one system parameter by id.

func (*Handler) FindParamByKey

func (h *Handler) FindParamByKey(c *echo.Context) error

FindParamByKey returns one system parameter by key.

func (*Handler) FindVersion

func (h *Handler) FindVersion(c *echo.Context) error

FindVersion returns one release record.

func (*Handler) ImportDictionaries

func (h *Handler) ImportDictionaries(c *echo.Context) error

ImportDictionaries imports dictionaries from a JSON bundle.

func (*Handler) ImportVersion

func (h *Handler) ImportVersion(c *echo.Context) error

ImportVersion imports a portable version bundle.

func (*Handler) ListConfigs

func (h *Handler) ListConfigs(c *echo.Context) error

ListConfigs returns system configs.

func (*Handler) ListDictionaries

func (h *Handler) ListDictionaries(c *echo.Context) error

ListDictionaries returns dictionaries.

func (*Handler) ListParams

func (h *Handler) ListParams(c *echo.Context) error

ListParams returns system parameters.

func (*Handler) ListVersions

func (h *Handler) ListVersions(c *echo.Context) error

ListVersions returns release records.

func (*Handler) UpdateDictionary

func (h *Handler) UpdateDictionary(c *echo.Context) error

UpdateDictionary updates a dictionary.

func (*Handler) UpdateDictionaryItem

func (h *Handler) UpdateDictionaryItem(c *echo.Context) error

UpdateDictionaryItem updates one dictionary item.

func (*Handler) UpdateParam

func (h *Handler) UpdateParam(c *echo.Context) error

UpdateParam updates one system parameter.

func (*Handler) UpdateVersion

func (h *Handler) UpdateVersion(c *echo.Context) error

UpdateVersion updates a release record.

func (*Handler) UpsertConfig

func (h *Handler) UpsertConfig(c *echo.Context) error

UpsertConfig creates or updates a system config.

type OperationRecorder

type OperationRecorder interface {
	RecordOperation(context.Context, auditusecase.OperationInput) (auditusecase.OperationLog, error)
}

OperationRecorder records setting mutations for audit.

Jump to

Keyboard shortcuts

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