zapproto

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(key string, msg proto.Message) zap.Field

Message constructs a field with a given key and Protobuf message. It will serialize the Protobuf message lazily.

func Messages

func Messages[M proto.Message](key string, msgs []M) zap.Field

Messages constructs a field with a given key and typed Protobuf messages. It will serialize the Protobuf messages lazily.

func TypedMessage

func TypedMessage(key string, msg proto.Message) zap.Field

TypedMessage constructs a field with a given key and Protobuf message. It will serialize the Protobuf message with its type URL lazily.

func TypedMessages

func TypedMessages[M proto.Message](key string, msgs []M) zap.Field

TypedMessages constructs a field with a given key and typed Protobuf messages. It will serialize the Protobuf messages with their type URL lazily.

Types

This section is empty.

Jump to

Keyboard shortcuts

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