lib

package
v0.0.0-...-860d224 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsumptionOffsetKey = "konsumerator_consumption_offsets"
	ProductionOffsetKey  = "konsumerator_production_offsets"
)

Variables

This section is empty.

Functions

func FileExists

func FileExists(file string) bool

func GetCpuRequests

func GetCpuRequests() (uint64, error)

func GetOffset

func GetOffset(client *redis.Client, key string, defaultValue int) (int, error)

func NewRedisClient

func NewRedisClient(addr string) (*redis.Client, error)

func SetOffset

func SetOffset(client *redis.Client, key string, value int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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