util

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel added in v1.2.0

func LogLevel(path string) zerolog.Level

LogLevel returns the best log level for the path.

func LogWithID added in v1.2.0

func LogWithID(ctx context.Context, log zerolog.Logger, tag string) zerolog.Logger

LogWithID returns a new logger based on the supplied logger with an additional ID field.

func ProcessConcurrency added in v1.2.0

func ProcessConcurrency(path string) int64

ProcessConcurrency returns the best process concurrency for the path.

func Timeout added in v1.2.0

func Timeout(path string) time.Duration

Timeout returns the best timeout for the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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