Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
CLI provides a command line interface to a Huma router.
func NewRouter ¶
NewRouter creates a new router, new CLI, sets the default middlware, and returns the CLI/router as a convenience function.
func (*CLI) ArgsParsed ¶
func (c *CLI) ArgsParsed(f func())
ArgsParsed registers a function to run after arguments have been parsed but before any command handler has been run. It is similar to a PreStart function but runs *before* PreStart functions and can be used for more than server startup, i.e. custom commands as well.
func (*CLI) PreStart ¶
func (c *CLI) PreStart(f func())
PreStart registers a function to run before the server starts but after command line arguments have been parsed.
Click to show internal directories.
Click to hide internal directories.