logmgmt

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginStatusSuccess = modellogmgmt.LoginStatusSuccess
	LoginStatusFailure = modellogmgmt.LoginStatusFailure
	LoginStatusLogout  = modellogmgmt.LoginStatusLogout
)

Variables

This section is empty.

Functions

func Register

func Register()

Register registers two modules: LoginLog and OperationLog.

Models:

  • LoginLog
  • OperationLog

Routes:

  • GET /api/log/loginlog
  • GET /api/log/loginlog/:id
  • GET /api/log/operationlog
  • GET /api/log/operationlog/:id

Cronjob:

  • cleanup operationlog and loginlog hourly.

Enable Audit to records all operation logs.

Types

type LoginLog

type LoginLog = modellogmgmt.LoginLog

type LoginLogModule

type LoginLogModule struct{}

func (*LoginLogModule) Param

func (*LoginLogModule) Param() string

func (*LoginLogModule) Pub

func (*LoginLogModule) Pub() bool

func (*LoginLogModule) Route

func (*LoginLogModule) Route() string

func (*LoginLogModule) Service

type LoginLogService

type LoginLogService = servicelogmgmt.LoginLogService

type LoginStatus

type LoginStatus = modellogmgmt.LoginStatus

type OperationLog

type OperationLog = modellogmgmt.OperationLog

type OperationLogModule

type OperationLogModule struct{}

func (*OperationLogModule) Param

func (*OperationLogModule) Param() string

func (*OperationLogModule) Pub

func (*OperationLogModule) Pub() bool

func (*OperationLogModule) Route

func (*OperationLogModule) Route() string

func (*OperationLogModule) Service

type OperationLogService

type OperationLogService = servicelogmgmt.OperationLogService

Jump to

Keyboard shortcuts

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