Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewServer), fx.Invoke(RegisterStatsviz), fx.Invoke(RegisterPprof), fx.Invoke(RegisterPsutil), )
Module for fx.
Functions ¶
func RegisterPsutil ¶ added in v1.144.0
func RegisterPsutil(server *Server, json *marshaller.JSON)
RegisterPprof for debug.
func RegisterStatsviz ¶ added in v1.144.0
func RegisterStatsviz(server *Server)
RegisterStatsviz for debug.
Types ¶
type Server ¶ added in v1.144.0
Server for HTTP.
func NewServer ¶ added in v1.144.0
func NewServer(params ServerParams) (*Server, error)
NewServer for HTTP.
type ServerParams ¶ added in v1.144.0
ServerParams for HTTP.
Click to show internal directories.
Click to hide internal directories.