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 ¶
func NewHTTPServer(ctx *Context) *httpServer
func NewNSQAdminOptions ¶
func NewNSQAdminOptions() *nsqadminOptions
func NewSingleHostReverseProxy ¶
this is similar to httputil.NewSingleHostReverseProxy except it passes along basic auth
Types ¶
type AdminAction ¶
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 ¶
type GraphInterval struct {
Selected bool
Timeframe string // the UI string
GraphFrom string // ?from=.
GraphUntil string // ?until=.
Duration time.Duration // for sort order
}
func GraphIntervalForTimeframe ¶
func GraphIntervalForTimeframe(t string, selected bool) (*GraphInterval, error)
func (*GraphInterval) URLOption ¶
func (g *GraphInterval) URLOption() template.URL
type GraphIntervals ¶
type GraphIntervals []*GraphInterval
func DefaultGraphTimeframes ¶
func DefaultGraphTimeframes(selected string) GraphIntervals
type GraphOptions ¶
type GraphOptions struct {
Configured bool
Enabled bool
GraphiteURL string
TimeframeString template.URL
AllGraphIntervals []*GraphInterval
GraphInterval *GraphInterval
// contains filtered or unexported fields
}
func NewGraphOptions ¶
func NewGraphOptions(rw http.ResponseWriter, req *http.Request, r *http_api.ReqParams, ctx *Context) *GraphOptions
func (*GraphOptions) LargeGraph ¶
func (g *GraphOptions) LargeGraph(gr GraphTarget, key string) template.URL
func (*GraphOptions) Rate ¶
func (g *GraphOptions) Rate(gr GraphTarget) string
func (*GraphOptions) Sparkline ¶
func (g *GraphOptions) Sparkline(gr GraphTarget, key string) template.URL
type GraphTarget ¶
type NSQAdmin ¶
func NewNSQAdmin ¶
func NewNSQAdmin(opts *nsqadminOptions) *NSQAdmin
func (*NSQAdmin) RealHTTPAddr ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.