audithttp

package
v0.0.0-...-db77838 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package audithttp adapts audit HTTP requests to the audit usecase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

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

Register mounts audit routes on group.

Types

type Handler

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

Handler adapts audit HTTP requests to the audit usecase.

func New

func New(uc *usecase.Usecase) *Handler

New creates an audit HTTP handler.

func (*Handler) BatchDeleteLoginLogs

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

BatchDeleteLoginLogs removes multiple login logs.

func (*Handler) BatchDeleteOperationLogs

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

BatchDeleteOperationLogs removes multiple operation logs.

func (*Handler) BatchDeleteSystemErrorLogs

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

BatchDeleteSystemErrorLogs removes multiple system error logs.

func (*Handler) DeleteLoginLog

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

DeleteLoginLog removes one login log.

func (*Handler) DeleteOperationLog

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

DeleteOperationLog removes one operation log.

func (*Handler) DeleteSystemErrorLog

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

DeleteSystemErrorLog removes one system error log.

func (*Handler) ListLoginLogs

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

ListLoginLogs returns login logs.

func (*Handler) ListOperationLogs

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

ListOperationLogs returns operation logs.

func (*Handler) ListSystemErrorLogs

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

ListSystemErrorLogs returns internal API failure logs.

func (*Handler) ReadLoginLog

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

ReadLoginLog returns one login log.

func (*Handler) ReadOperationLog

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

ReadOperationLog returns one operation log.

func (*Handler) ReadSystemErrorLog

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

ReadSystemErrorLog returns one system error log.

func (*Handler) ReopenSystemErrorLog

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

ReopenSystemErrorLog clears the handled state for one system error.

func (*Handler) ResolveSystemErrorLog

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

ResolveSystemErrorLog marks one system error as handled.

Jump to

Keyboard shortcuts

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