Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidProfilingPort occurs when the port in the config is invalid. ErrInvalidProfilingPort = errors.New("invalid port number for profiling server") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves information for profiling, such as metrics and pprof information.
func NewServer ¶
func NewServer(conf *Config, metrics *prometheus.Metrics) *Server
NewServer creates an instance of Server.
Click to show internal directories.
Click to hide internal directories.