Documentation
¶
Index ¶
- func FormatID(id int64) string
- func GetPrincipal(c echo.Context) (orgID, userID, principalType string)
- func IsMutatingMethod(method string) bool
- func LogAuthFailure(reason, remoteAddr string)
- func LogAuthzFailure(c echo.Context, reason string)
- func LogCrud(c echo.Context, action, resourceType, resourceID, outcome string)
- func LogShutdown(outcome, reason string)
- func LogStartup(outcome string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrincipal ¶
GetPrincipal extracts principal information from the echo context.
func IsMutatingMethod ¶
IsMutatingMethod returns true for POST, PUT, PATCH, DELETE.
func LogAuthFailure ¶
func LogAuthFailure(reason, remoteAddr string)
LogAuthFailure logs an authentication failure security event (EOI-7).
func LogAuthzFailure ¶
LogAuthzFailure logs an authorization failure security event (EOI-8).
func LogShutdown ¶
func LogShutdown(outcome, reason string)
LogShutdown logs a process shutdown security event (EOI-5).
func LogStartup ¶
func LogStartup(outcome string)
LogStartup logs a process startup security event (EOI-5).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.