util

package
v0.0.0-...-beb54cf Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPanic

func AssertPanic(t *testing.T)

func CheckEnvForArray

func CheckEnvForArray(name string, a []string) []string

func CheckEnvForValue

func CheckEnvForValue(name string, v string) string

func ErrEq

func ErrEq(x error) gomock.Matcher

func GetSystemConcurrency

func GetSystemConcurrency() (concurrency int)

func IsNil

func IsNil(i interface{}) bool

func WaitTimeout

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) error

Types

type ConfigWatcher

type ConfigWatcher struct {
	// contains filtered or unexported fields
}

func NewConfigWatcher

func NewConfigWatcher(eventHandler ConfigWatcherEventHandler) (c *ConfigWatcher, err error)

func (*ConfigWatcher) StopWatch

func (c *ConfigWatcher) StopWatch() (err error)

func (*ConfigWatcher) WatchConfigFile

func (c *ConfigWatcher) WatchConfigFile(configFile string) (err error)

type ConfigWatcherEventHandler

type ConfigWatcherEventHandler interface {
	OnConfigModified()
}

Jump to

Keyboard shortcuts

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