Documentation ¶
Index ¶
- Variables
- func IsRunning() bool
- func IsValidEvictionPolicy(policy string) (bool, error)
- type Option
- func Context(ctx context.Context) Option
- func DebugMode(b bool) Option
- func EstimateWithInternalMemory(b bool) Option
- func EvictionPolicy(n string) Option
- func ID(s string) Option
- func MemoryPercentage(n float32) Option
- func ModelEstimationRate(n float32) Option
- func PersistCPU(b bool) Option
- func PersistCPUOnly(b bool) Option
- func Stderr(w io.Writer) Option
- func Stdout(w io.Writer) Option
- func UploadProfile(b bool) Option
- func WriteProfile(b bool) Option
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultOptions = Options{ // contains filtered or unexported fields } )
View Source
var (
EvictionPolicies = []string{
"never",
"lru",
"lcu",
"fifo",
"flush",
"all",
}
)
Functions ¶
func IsValidEvictionPolicy ¶
Types ¶
type Option ¶
type Option func(*Options)
func EvictionPolicy ¶
func MemoryPercentage ¶
func ModelEstimationRate ¶
func PersistCPU ¶
func PersistCPUOnly ¶
func UploadProfile ¶
func WriteProfile ¶
Click to show internal directories.
Click to hide internal directories.