Documentation ¶
Overview ¶
Package handlers is where the HTTP server work is done.
Index ¶
- Variables
- func APIGetAssignedCount(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetAssignedList(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetAvailableInventory(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetInstanceFromPort(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetOpenPort(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetPortCapacity(c web.C, w http.ResponseWriter, r *http.Request)
- func APIGetPortFromInstance(c web.C, w http.ResponseWriter, r *http.Request)
- func APIRemoveService(c web.C, w http.ResponseWriter, r *http.Request)
- func CommifyFloat(bytes float64) string
- func HumanizeBigBytes(bytes int64) string
- func HumanizeBytes(bytes int) string
- func IntFromFloat64(incoming float64) (i int)
- func OkToBool(ok string) bool
- type PageContext
Constants ¶
This section is empty.
Variables ¶
View Source
var STATIC_URL string
View Source
var TemplateBase string
Functions ¶
func APIGetAssignedCount ¶
func APIGetAssignedList ¶
func APIGetInstanceFromPort ¶
func APIGetOpenPort ¶
func APIGetPortCapacity ¶
func APIGetPortFromInstance ¶
func APIRemoveService ¶
func CommifyFloat ¶
CommifyFloat turns a float into a string with comma separation
func HumanizeBigBytes ¶
HumanizeBigBytes transforms a uint64 to a human readable string such as "100Kb"
func HumanizeBytes ¶
HumanizeBytes transforms an int to a human readable string such as "100Kb"
func IntFromFloat64 ¶
IntFromFloat64 provides a convenience function fo convert an int to a float insert screed about how you probably should not do it but sometimes you need to here.
Types ¶
type PageContext ¶
type PageContext struct { Title string SubTitle string Data interface{} Static string ViewTemplate string CurrentURL string Refresh bool RefreshTime int RefreshURL string Error error }
PageContext holds all the contextual information a page will want to return, use, or display
func NewPageContext ¶
func NewPageContext() (pc PageContext, err error)
NewPageContext instantiates and returns a PageContext with "global" data already set.
Click to show internal directories.
Click to hide internal directories.