server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapsedToProfile added in v0.8.0

func CollapsedToProfile(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)

func JSONToProfile added in v0.8.0

func JSONToProfile(b []byte, _ string, _ int) (*flamebearer.FlamebearerProfile, error)

func PprofToProfile added in v0.8.0

func PprofToProfile(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)

Types

type ConverterFn added in v0.8.0

type ConverterFn func(b []byte, name string, maxNodes int) (*flamebearer.FlamebearerProfile, error)

type Server

type Server interface {
	AddRoutes(router *mux.Router) http.HandlerFunc
}

func New

func New(log logrus.FieldLogger, dataDir string, maxNodes int, enabled bool) Server

Jump to

Keyboard shortcuts

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