dataconfig

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_CHUNK_SIZE            uint64 = 32 * 1024 // 32 kb
	STANDARD_MAX_SAVE_REQUESTS int    = 125
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMemoryConfig

type DataMemoryConfig struct {
	AvailableRAM uint64 `toml:"available_ram"` // Total memory which service can be use
	MaxChunkSize uint64 `toml:"max_chunk_size"`
	MinChunkSize uint64 `toml:"min_chunk_size"`
}

type DataServiceConfig

type DataServiceConfig struct {
	WorkspacePath string // User files path
	Memory        DataMemoryConfig
}

func NewDataServerConfig

func NewDataServerConfig(workspace_path string, data_memory_cfg DataMemoryConfig) DataServiceConfig

Jump to

Keyboard shortcuts

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