audit

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

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsistParameters

func ConsistParameters(c *gin.Context, body []byte) string

ConsistParameters includes header、body and queryString

Types

type Event

type Event struct {
	EventTime         int64
	EventVersion      string
	EventName         string
	Description       string
	SourceIpAddress   string
	UserAgent         string
	RequestId         string
	RequestMethod     string
	RequestParameters string
	ResponseStatus    int
	ResponseElements  string
	EventType         string
	ResourceReports   []Resource
	ErrorCode         string
	ErrorMessage      string
	Url               string
	UserIdentity      *UserIdentity
	ApiAction         string
	ApiVersion        string
	EventSource       string
}

type EventList

type EventList struct {
	Items []Event
}

type Handler

type Handler struct {
	EnInstance  *gi18n.Manager
	EnvInstance *gi18n.Manager
}

func NewHandler

func NewHandler(managers *international.Gi18nManagers) Handler

func (*Handler) Audit

func (h *Handler) Audit() gin.HandlerFunc

func (*Handler) SendEvent

func (h *Handler) SendEvent(c *gin.Context, event *Event, options *Options)

func (*Handler) Translate

func (h *Handler) Translate(ctx context.Context, content string) string

type Options

type Options struct {
	Translate bool
}

type Resource

type Resource struct {
	ResourceType string
	ResourceId   string
	ResourceName string
}

type UserIdentity

type UserIdentity struct {
	AccountId string
}

Jump to

Keyboard shortcuts

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