hiername

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: ISC Imports: 1 Imported by: 1

Documentation

Overview

Package hiername provides hierarchical "."-separated names for use with logging and metrics collection systems.

Index

Constants

View Source
const Sep = "."

Sep is the name separator.

Variables

This section is empty.

Functions

func Append

func Append(name string, segments ...string) string

Append appends the specified segments to the specified name. For example:

Append("", "apiserver") == "apiserver"
Append("", "x", "y") == "x.y"
Append("apiserver", "proxy") == "apiserver.proxy"
Append("foo", "bar", "baz") == "foo.bar.baz"

func Segments

func Segments(name string) []string

Segments returns the segments in a hierarchical name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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