util

package
v0.0.0-...-9f00eee Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFreePort

func FindFreePort() (int, error)

Finds a free port in the current machine/container

func GetRedisAIClient

func GetRedisAIClient(pool *redis.Pool, pipeline bool) *redisai.Client

GetRedisAIClient returns a connection from the previously created pool of the trainjob. It optionally activates pipelining upon request

func GetRedisConnectionPool

func GetRedisConnectionPool() *redis.Pool

GetRedisConnectionPool creates and returns a redis connection pool which will be used when asking for a redisai connection in the future

func IsDebugEnv

func IsDebugEnv() bool

func LimitParallelism

func LimitParallelism() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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