Versions in this module Expand all Collapse all v0 v0.1.0 May 12, 2016 Changes in this version + const PackageName + var ContainerNameFlag = config.DeclareString("", "containerName", "") + var ErrNotYetConstructed = fmt.Errorf("Not yet constructed") + var ErrWasDestructed = fmt.Errorf("Was destructed") + var InstanceIDFlag = config.DeclareString("", "instanceID", RandomID()) + var LogInstanceAndServiceFlag = config.DeclareBool(PackageName, "logInstanceAndService") + var LoggingFormatFlag = config.DeclareString(PackageName, "loggingFormat", "colortext") + var LoggingLevelFlag = config.DeclareString(PackageName, "loggingLevel", "info") + var ServiceFlag = config.DeclareString("", "service", "") + func ExpBackoff(tryFun TryFun, startBackoff time.Duration, maxTriesDuration time.Duration) (result interface{}, err error) + func GetRand() (tmpRand *rand.Rand) + func PutRand(tmpRand *rand.Rand) + func RandomHostName() string + func RandomID() string + func Tar(writer io.Writer, sourceDir string) error + func Untar(reader io.Reader, targetDir string) error + func UpdateLoggingSettings() + type Cache struct + func NewCache(expiry time.Duration, constructor func(string) (interface{}, error), ...) *Cache + func (cache *Cache) Destroy(key string) bool + func (cache *Cache) Get(key string) (interface{}, error) + func (cache *Cache) GetExisting(key string) (interface{}, bool) + func (cache *Cache) KeepAlive(key string) bool + type Logger struct + func GetLogger(pack, name string) *Logger + func (logger *Logger) Debug(msg string) + func (logger *Logger) Entry() *logrus.Entry + func (logger *Logger) Error(msg string) + func (logger *Logger) Fatal(msg string) + func (logger *Logger) Info(msg string) + func (logger *Logger) Panic(msg string) + func (logger *Logger) Warning(msg string) + func (logger *Logger) WithFields(args ...interface{}) (ret *Logger) + type TryFun func() (result interface{}, err error, finalErr error) + type UnboundedChannel struct + func NewUnboundedChannel() *UnboundedChannel + func (uc *UnboundedChannel) Get() <-chan interface{} + func (uc *UnboundedChannel) Load() + func (uc *UnboundedChannel) Put(element interface{})