state

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV__CONTROL_TRANSACTION_TIMEOUT__ = func() func() time.Duration {
	td, err := time.ParseDuration(os.Getenv("CONTROL_TRANSACTION_TIMEOUT"))
	if err != nil {
		return func() time.Duration { return 3 * time.Second }
	}
	return func() time.Duration { return td }
}()

__CONTROL_TRANSACTION_TIMEOUT__

transaction timeout for control package
env:
  CONTROL_TRANSACTION_TIMEOUT=3s
View Source
var ENV__INIT_SLICE_CAPACITY__ = func() func() int {
	n, err := strconv.Atoi(os.Getenv("INIT_SLICE_CAPACITY"))
	if err != nil {
		return func() int { return 5 }
	}

	if n < 0 {
		n = 1
	}
	return func() int { return n }
}()

__INIT_SLICE_CAPACITY__

init slice capacity
env:
  INIT_SLICE_CAPACITY=5

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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