util

package
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPathPrefix

func AppendPathPrefix(nodePath string, prefix string) string

func GetMapValue

func GetMapValue(m interface{}, nodePath string) string

func TrimPathPrefix

func TrimPathPrefix(nodePath string, prefix string) string

func TrimPathPrefixBatch

func TrimPathPrefixBatch(meta map[string]string, prefix string) map[string]string

Types

type TimerPool

type TimerPool struct {
	TotalNew atomic.AtomicInteger
	TotalGet atomic.AtomicInteger
	// contains filtered or unexported fields
}

func NewTimerPool

func NewTimerPool(timeout time.Duration) *TimerPool

func (*TimerPool) AcquireTimer

func (tp *TimerPool) AcquireTimer() *time.Timer

func (*TimerPool) ReleaseTimer

func (tp *TimerPool) ReleaseTimer(t *time.Timer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL