Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringFlagPutHandler ¶
func StringFlagPutHandler(setter StringFlagSetterFunc) http.HandlerFunc
StringFlagPutHandler wraps an http Handler to set string type flag.
Types ¶
type DebugFlags ¶
type DebugFlags struct {
// contains filtered or unexported fields
}
DebugFlags adds handlers for flags under /debug/flags.
func NewDebugFlags ¶
func NewDebugFlags(c *mux.PathRecorderMux) DebugFlags
func (DebugFlags) Index ¶
func (f DebugFlags) Index(w http.ResponseWriter, r *http.Request)
Index responds with the `/debug/flags` request. For example, "/debug/flags/v" serves the "--v" flag. Index responds to a request for "/debug/flags/" with an HTML page listing the available flags.
func (DebugFlags) Install ¶
func (f DebugFlags) Install(flag string, handler func(http.ResponseWriter, *http.Request))
Install registers the APIServer's flags handler.
type StringFlagSetterFunc ¶
StringFlagSetterFunc is a func used for setting string type flag.
Click to show internal directories.
Click to hide internal directories.