utils

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildDate   = ""
	BuildName   = "dev"
	VersionName = "0"
)

Functions

func CollectMetricNames added in v1.12.0

func CollectMetricNames(header string, timings ServerTimings)

CollectMetricNames collects metric names from the given Server-Timing HTTP header field. See https://www.w3.org/TR/server-timing/

func JoinOpenAPIPath added in v1.10.0

func JoinOpenAPIPath(elements ...string) string

func JoinPath

func JoinPath(elements ...string) string

JoinPath ensures the file-muxer behaviour for redirecting '/path' to '/path/' if not explicitly specified.

func MergeMetrics added in v1.12.0

func MergeMetrics(src, dest ServerTimings)

MergeMetrics merges timings from 'src' into 'dest'.

Types

type ServerTimings added in v1.12.0

type ServerTimings map[string]string

Jump to

Keyboard shortcuts

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