package
1.2.1
Repository: https://github.com/wawafc/go-utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
GetRawJSON converts a Protobuf message to JSON bytes if less than MaxSize.
LogDuration in seconds of gRPC call.
LogIncomingCall of gRPC method.
LogIncomingMetadata or UserAgent field of incoming gRPC Request, if assigned.
No description provided by the author
LogIP address of gRPC client, if assigned.
LogMetadata of gRPC Request { MetadataField: { MetadataKey1: MetadataValue1, } }.
LogMethod of gRPC call.
LogRequest in JSON of gRPC Call, given Request is smaller than MaxSize (Default=2MB).
LogResponse in JSON of gRPC Call, given Response is smaller than MaxSize (Default=2MB).
LogService of gRPC name.
LogStatusError of gRPC Error Response.
LogTimestamp of call.
LogUserAgent of gRPC Client, if assigned.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

CodeField gRPC status code response.
DetailsField gRPC response errors.
DurationField key.
DurationLog gRPC call duration.
IPField key.
IPLog gRPC client IP.
Marshaller of Protobuf to JSON.
MaxSize to log gRPC bodies.
MetadataField key.
MetadataLog gRPC call metadata.
MethodField key.
MethodLog gRPC method name.
MsgField gRPC response message.
ReqField key.
ReqLog gRPC request body.
RespField key.
RespLog gRPC response body.
ServiceField key.
ServiceLog gRPC service name.
TimestampLog call start.
TraceIDField.
UnaryMessageDefault of logging messages from unary.
UserAgentField key.
UserAgentLog gRPC client User Agent.

# Structs

No description provided by the author