constants

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigPathEnvKey is environment key stores config path
	ConfigPathEnvKey = "PICO_CFG_PATH"
	// CfgTokenEnvKey is environment key stores operator's access token
	CfgTokenEnvKey = "PICO_CFG_TOKEN"
)
View Source
const (
	// GrpcKeepalivePeriod is interval of QUIC keepalive messages
	GrpcKeepalivePeriod = 5 * time.Second
	// GrpcKeepaliveCount is count of QUIC keepalive mesages before connection marked as dead
	GrpcKeepaliveCount = 3
	// GrpcMaxConcurrentStreams is maximum number of concurrent streams. On limit reach new RPC calls
	// will be queue until capacity is available
	GrpcMaxConcurrentStreams = 500
	// GrpcTlsMinVersion is minimum TLS version for GRPC servers
	GrpcTlsMinVersion = tls.VersionTLS12
	// GrpcOperatorHealthCheckTimeout timeout to send health checks for operator
	GrpcOperatorHealthCheckTimeout = 10 * time.Second
)
View Source
const (
	// ECLength is eleptic curve length for private key generation
	ECLength = 384
	// CertValidTime is certificate's TTL (in years)
	CertValidTime = 10
)
View Source
const (
	// LetterBytes is string with bytes for random string generation
	LetterBytes   = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
	LetterIdxBits = 6
	LetterIdxMask = 1<<LetterIdxBits - 1
	LetterIdxMax  = 63 / LetterIdxBits
)
View Source
const (
	// MaxObjectChunks is maximum number of objects in chunk.
	// Used for partition data from DB on sub-arrays
	MaxObjectChunks int = 10000
)
View Source
const (
	// TempTaskOutputPrefix is prefix for files to hold temporary output of task.
	// Temporariy files used to reduce load on DB in case of a lot of parts in task's output
	TempTaskOutputPrefix = "temp_task_output_"
)
View Source
const (
	// WyhashSeed is seed used for initialization of wyhash algorithm.
	// In case of changing this value on dirty DB (with data) - blobber
	// will create new instance of blobs in DB, so change it only on clean DB
	// to preserve space.
	WyhashSeed = 0x8d19a91
)

Variables

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
JackTT - Gopher 🇻🇳