utils

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 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

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

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

func MergeMetrics(src, dest ServerTimings)

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

Types

type ServerTimings

type ServerTimings map[string]string

Jump to

Keyboard shortcuts

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