mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-18 18:53:41 +09:00
feat: Add audit logging (#38189)
Co-authored-by: bircni <bircni@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
co-authored by
bircni
wxiaoguang
parent
4d43445532
commit
da37b7916b
@@ -0,0 +1,14 @@
|
||||
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package audit
|
||||
|
||||
// Origin identifies how an audit event was initiated.
|
||||
type Origin string
|
||||
|
||||
const (
|
||||
OriginUI Origin = "ui"
|
||||
OriginAPI Origin = "api"
|
||||
OriginCLI Origin = "cli"
|
||||
OriginSystem Origin = "system"
|
||||
)
|
||||
Reference in New Issue
Block a user