Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns an Iris Handler which renders the server name (env), build information (if available) and an OK message. The handler displays simple debug information such as build commit id and time. It does NOT render information about the Go language itself or any operating system confgiuration for security reasons.
Example Code:
app.Get("/health", modrevision.New(modrevision.Options{ ServerName: "Iris Server", Env: "development", Developer: "kataras", TimeLocation: time.FixedZone("Greece/Athens", 7200), }))
Types ¶
type Options ¶
type Options struct { // The ServerName, e.g. Iris Server. ServerName string // The Environment, e.g. development. Env string // The Developer, e.g. kataras. Developer string // True to display the build time as unix (seconds). UnixTime bool // A non nil time location value to customize the display of the build time. TimeLocation *time.Location }
Options holds the necessary values to render the server name, environment and build information. See the `New` package-level function.
Click to show internal directories.
Click to hide internal directories.