config

package
v0.0.0-...-3fd51b5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type       string   `toml:"type"`
	Name       string   `toml:"name"`
	Capacities []uint   `toml:"capacities"`
	Caches     []string `toml:"caches"`
	Limit      *uint    `toml:"limit"`

	Zipf *Zipf `toml:"zipf"`
	File *File `toml:"file"`
}

func Load

func Load(configPath string) (Config, error)

type File

type File struct {
	TraceType string   `toml:"trace_type"`
	Paths     []string `toml:"paths"`
}

type Zipf

type Zipf struct {
	S    float64 `toml:"s"`
	V    float64 `toml:"v"`
	IMAX uint64  `toml:"imax"`
}

Jump to

Keyboard shortcuts

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