audit

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRequest

type AuditRequest struct {
	Page     int    `form:"page" json:"page"`
	PageSize int    `form:"pageSize" json:"pageSize"`
	Size     int    `form:"size" json:"size"`
	Action   string `form:"action" json:"action"`
	UserID   string `form:"userId" json:"userId"`
	Actor    string `form:"actor" json:"actor"`
	Kind     string `form:"kind" json:"kind"`
	Kinds    string `form:"kinds" json:"kinds"`
	GameID   string `form:"game_id" json:"game_id"`
	Env      string `form:"env" json:"env"`
	IP       string `form:"ip" json:"ip"`
	Start    string `form:"start" json:"start"`
	End      string `form:"end" json:"end"`
}

AuditRequest audit log request

type AuditResponse

type AuditResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

AuditResponse audit log response

type Handler

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

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) GetAuditLogs

func (h *Handler) GetAuditLogs(c *gin.Context)

GetAuditLogs retrieves audit logs with filtering and pagination Supports both GET (query params) and POST (JSON body) requests

type Service

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

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) GetAuditLogs

func (s *Service) GetAuditLogs(ctx context.Context, req *AuditRequest) (*AuditResponse, error)

GetAuditLogs retrieves audit logs with filtering and pagination

Jump to

Keyboard shortcuts

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