Documentation ¶
Index ¶
- func NewHTTPServer(ctx *Context) *httpServer
- func NewNSQAdminOptions() *nsqadminOptions
- func NewSingleHostReverseProxy(target *url.URL, timeout time.Duration) *httputil.ReverseProxy
- type AdminAction
- type Context
- type GraphInterval
- type GraphIntervals
- type GraphOptions
- type GraphTarget
- type NSQAdmin
- type Node
- type Topic
- type Topics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPServer ¶ added in v0.2.25
func NewHTTPServer(ctx *Context) *httpServer
func NewNSQAdminOptions ¶ added in v0.2.25
func NewNSQAdminOptions() *nsqadminOptions
func NewSingleHostReverseProxy ¶ added in v0.2.16
this is similar to httputil.NewSingleHostReverseProxy except it passes along basic auth
Types ¶
type AdminAction ¶ added in v0.2.17
type AdminAction struct { Action string `json:"action"` Topic string `json:"topic"` Channel string `json:"channel,omitempty"` Node string `json:"node,omitempty"` Timestamp int64 `json:"timestamp"` User string `json:"user,omitempty"` RemoteIP string `json:"remote_ip"` UserAgent string `json:"user_agent"` }
type GraphInterval ¶ added in v0.2.16
type GraphInterval struct { Selected bool Timeframe string // the UI string GraphFrom string // ?from=. GraphUntil string // ?until=. Duration time.Duration // for sort order }
func GraphIntervalForTimeframe ¶ added in v0.2.16
func GraphIntervalForTimeframe(t string, selected bool) (*GraphInterval, error)
func (*GraphInterval) URLOption ¶ added in v0.3.3
func (g *GraphInterval) URLOption() template.URL
type GraphIntervals ¶ added in v0.2.16
type GraphIntervals []*GraphInterval
func DefaultGraphTimeframes ¶ added in v0.2.16
func DefaultGraphTimeframes(selected string) GraphIntervals
type GraphOptions ¶ added in v0.2.16
type GraphOptions struct { Configured bool Enabled bool GraphiteURL string TimeframeString template.URL AllGraphIntervals []*GraphInterval GraphInterval *GraphInterval // contains filtered or unexported fields }
func NewGraphOptions ¶ added in v0.2.16
func NewGraphOptions(rw http.ResponseWriter, req *http.Request, r *http_api.ReqParams, ctx *Context) *GraphOptions
func (*GraphOptions) LargeGraph ¶ added in v0.2.16
func (g *GraphOptions) LargeGraph(gr GraphTarget, key string) template.URL
func (*GraphOptions) Prefix ¶ added in v0.2.16
func (g *GraphOptions) Prefix(host string, metricType string) string
func (*GraphOptions) Rate ¶ added in v0.2.20
func (g *GraphOptions) Rate(gr GraphTarget) string
func (*GraphOptions) Sparkline ¶ added in v0.2.16
func (g *GraphOptions) Sparkline(gr GraphTarget, key string) template.URL
type GraphTarget ¶ added in v0.2.20
type NSQAdmin ¶ added in v0.2.25
func NewNSQAdmin ¶ added in v0.2.25
func NewNSQAdmin(opts *nsqadminOptions) *NSQAdmin
func (*NSQAdmin) RealHTTPAddr ¶ added in v0.3.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.