prometheus

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Libs = []templates.Library{
	{Name: "net/http"},
	{Name: "github.com/prometheus/client_golang/prometheus/promhttp"},
}
View Source
var Models = map[string]string{}
View Source
var Props = []templates.Property{
	{Name: "Http", Type: "*http.ServeMux", Default: "http.NewServeMux()"},
}
View Source
var TemplateRunFunction = `` /* 138-byte string literal not displayed */
View Source
var TemplateSetter = `` /* 126-byte string literal not displayed */
View Source
var TemplateSetterFunction = `` /* 163-byte string literal not displayed */
View Source
var Templates = map[string]string{
	"app/http.go": `package app

import (
	"net/http"
)

func (a *Application) RunHttp() error {
	// TODO: Implement me
	go func() {
		a.Logger.Info("http server started on [::]:4000")
		a.Error <- http.ListenAndServe(":4000", a.Http)
	}()
	return nil
}
`,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL