util

package
v0.0.0-...-504b55f Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Itob

func Itob(v int64) []byte

func MakeULID

func MakeULID() ulid.ULID

MakeULID returns an ULID with the current time in Unix milliseconds and monotonically increasing entropy for the same millisecond. It is safe for concurrent use.

Types

type LoggerFunc

type LoggerFunc func(e *zerolog.Event)

LoggerFunc turns a function into an a zerolog marshaller.

func MapAsZerologObject

func MapAsZerologObject(m map[string]string) LoggerFunc

MapAsZerologObject converts a map into a LogObjectMarshaler.

func MessageEnvelopeAsZerologObject

func MessageEnvelopeAsZerologObject(env *actor.MessageEnvelope) LoggerFunc

MessageEnvelopeAsZerologObject converts a map into a LogObjectMarshaler.

func (LoggerFunc) MarshalZerologObject

func (f LoggerFunc) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject makes the LoggerFunc type a LogObjectMarshaler.

Jump to

Keyboard shortcuts

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