{"modulePath":"github.com/nextlinux/tracee","version":"v0.0.0-20230527010910-d4ca6f93c448","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Types\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\nServer represents a http server\n\n```go\nfunc New(listenAddr string) *Server\n```\nNew creates a new server\n\n```go\nfunc (s *Server) EnableHealthzEndpoint()\n```\nEnableHealthzEndpoint enables healthz endpoint\n\n```go\nfunc (s *Server) EnableMetricsEndpoint()\n```\nEnableMetricsEndpoint enables metrics endpoint\n\n```go\nfunc (s *Server) EnablePProfEndpoint()\n```\nEnablePProfEndpoint enables pprof endpoint for debugging\n\n```go\nfunc (s *Server) EnablePyroAgent() error\n```\nEnablePyroAgent enables pyroscope agent in golang push mode TODO: make this configurable\n\n```go\nfunc (s *Server) MetricsEndpointEnabled() bool\n```\nMetricsEndpointEnabled returns true if metrics endpoint is enabled\n\n```go\nfunc (s *Server) Start(ctx context.Context)\n```\nStart starts the http server on the listen address\n\n","path":"github.com/nextlinux/tracee/pkg/server","name":"server","synopsis":"","isRedistributable":true}
