server

package
v0.0.0-...-a595894 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: NCSA Imports: 23 Imported by: 1

Documentation

Index

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 IsRunning

func IsRunning() bool

func IsValidEvictionPolicy

func IsValidEvictionPolicy(policy string) (bool, error)

Types

type Option

type Option func(*Options)

func Context

func Context(ctx context.Context) Option

func DebugMode

func DebugMode(b bool) Option

func EstimateWithInternalMemory

func EstimateWithInternalMemory(b bool) Option

func EvictionPolicy

func EvictionPolicy(n string) Option

func ID

func ID(s string) Option

func MemoryPercentage

func MemoryPercentage(n float32) Option

func ModelEstimationRate

func ModelEstimationRate(n float32) Option

func PersistCPU

func PersistCPU(b bool) Option

func PersistCPUOnly

func PersistCPUOnly(b bool) Option

func Stderr

func Stderr(w io.Writer) Option

func Stdout

func Stdout(w io.Writer) Option

func UploadProfile

func UploadProfile(b bool) Option

func WriteProfile

func WriteProfile(b bool) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

func WithOptions

func WithOptions(opts ...Option) *Options

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Server

func (Server) IsRunning

func (s Server) IsRunning() bool

func (*Server) Run

func (s *Server) Run() (*trace.Trace, error)

func (Server) Stop

func (s Server) Stop() error

Jump to

Keyboard shortcuts

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