helper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEventTimestamp

func GenerateEventTimestamp() int64

GenerateEventTimestamp is used to provide a consistent way to generate timestamps across all internal events. Any changes here will impact all event messages.

func LoggerWithNodeClassContext

func LoggerWithNodeClassContext(logger zerolog.Logger, class string) zerolog.Logger

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, bytes []byte, statusCode int, log zerolog.Logger)

Types

This section is empty.

Jump to

Keyboard shortcuts

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