Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewHTTPServer ¶ added in v0.2.25
func NewHTTPServer(nsqadmin *NSQAdmin) *httpServer
func NewSingleHostReverseProxy ¶ added in v0.2.16
func NewSingleHostReverseProxy(target *url.URL, connectTimeout time.Duration, requestTimeout time.Duration) *httputil.ReverseProxy
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"` URL string `json:"url"` // The URL of the HTTP request that triggered this action Via string `json:"via"` // the Hostname of the nsqadmin performing this action }
type NSQAdmin ¶ added in v0.2.25
func (*NSQAdmin) RealHTTPAddr ¶ added in v0.3.3
type Options ¶ added in v0.3.6
type Options struct { LogLevel lg.LogLevel `flag:"log-level"` LogPrefix string `flag:"log-prefix"` Logger Logger HTTPAddress string `flag:"http-address"` BasePath string `flag:"base-path"` DevStaticDir string `flag:"dev-static-dir"` GraphiteURL string `flag:"graphite-url"` ProxyGraphite bool `flag:"proxy-graphite"` StatsdPrefix string `flag:"statsd-prefix"` StatsdCounterFormat string `flag:"statsd-counter-format"` StatsdGaugeFormat string `flag:"statsd-gauge-format"` StatsdInterval time.Duration `flag:"statsd-interval"` NSQLookupdHTTPAddresses []string `flag:"lookupd-http-address" cfg:"nsqlookupd_http_addresses"` NSQDHTTPAddresses []string `flag:"nsqd-http-address" cfg:"nsqd_http_addresses"` HTTPClientConnectTimeout time.Duration `flag:"http-client-connect-timeout"` HTTPClientRequestTimeout time.Duration `flag:"http-client-request-timeout"` HTTPClientTLSInsecureSkipVerify bool `flag:"http-client-tls-insecure-skip-verify"` HTTPClientTLSRootCAFile string `flag:"http-client-tls-root-ca-file"` HTTPClientTLSCert string `flag:"http-client-tls-cert"` HTTPClientTLSKey string `flag:"http-client-tls-key"` AllowConfigFromCIDR string `flag:"allow-config-from-cidr"` NotificationHTTPEndpoint string `flag:"notification-http-endpoint"` ACLHTTPHeader string `flag:"acl-http-header"` AdminUsers []string `flag:"admin-user" cfg:"admin_users"` }
func NewOptions ¶ added in v0.3.6
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.