rpc

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditLn

func AuditLn(correlationId *string, v ...any)

AuditLn logs an audit message with the provided correlationId and message arguments. Audit messages are always logged, regardless of the current log level.

func CreateLogServer

func CreateLogServer() *grpc.Server

func DebugLn

func DebugLn(correlationId *string, v ...any)

DebugLn logs a debug message with the provided correlationId and message arguments if the current log level is Debug or lower.

func ErrorLn

func ErrorLn(correlationId *string, v ...any)

ErrorLn logs an error message with the provided correlationId and message arguments if the current log level is Error or lower.

func FatalLn

func FatalLn(correlationId *string, v ...any)

FatalLn logs a fatal message with the provided correlationId and message arguments. The application will exit after the message is logged.

func InfoLn

func InfoLn(correlationId *string, v ...any)

InfoLn logs an informational message with the provided correlationId and message arguments if the current log level is Info or lower.

func SentinelLoggerUrl

func SentinelLoggerUrl() string

SentinelLoggerUrl retrieves the URL for the VSecM Sentinel Logger from the environment variable VSECM_SENTINEL_LOGGER_URL. If this environment variable is not set, it defaults to "localhost:50051".

This url is used to configure gRPC logging service, which enables VSecM Sentinel's `safe` CLI command to send audit logs to the container's standard output.

func TraceLn

func TraceLn(correlationId *string, v ...any)

TraceLn logs a trace message with the provided correlationId and message arguments if the current log level is Trace or lower.

func WarnLn

func WarnLn(correlationId *string, v ...any)

WarnLn logs a warning message with the provided correlationId and message arguments if the current log level is Warn or lower.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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