Documentation ¶
Index ¶
- func RegisterHttpProxyModule(name string, h HttpProxyCreateFunc)
- func UnregisterHttpProxyModule(name string)
- type CacheData
- type HttpProxyCreateFunc
- type HttpProxyModule
- type ILocalProxy
- type LocalHttpProxy
- type NsqLookupHttpProxy
- func (self *NsqLookupHttpProxy) GetProxyName() string
- func (self *NsqLookupHttpProxy) HandleLookup(proxyaddr string, disableCache, disableConvert bool, w http.ResponseWriter, ...)
- func (self *NsqLookupHttpProxy) HandleNodes(proxyaddr string, disableCache, disableConvert bool, w http.ResponseWriter, ...)
- func (self *NsqLookupHttpProxy) ProxyHandler(proxyaddr string, w http.ResponseWriter, r *http.Request)
- func (self *NsqLookupHttpProxy) Stop()
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHttpProxyModule ¶
func RegisterHttpProxyModule(name string, h HttpProxyCreateFunc)
func UnregisterHttpProxyModule ¶
func UnregisterHttpProxyModule(name string)
Types ¶
type HttpProxyCreateFunc ¶
type HttpProxyCreateFunc func(p ILocalProxy) HttpProxyModule
type HttpProxyModule ¶
type HttpProxyModule interface { ProxyHandler(addr string, w http.ResponseWriter, r *http.Request) Stop() GetProxyName() string }
func CreateNsqLookupHttpProxy ¶
func CreateNsqLookupHttpProxy(p ILocalProxy) HttpProxyModule
type ILocalProxy ¶
type LocalHttpProxy ¶
type LocalHttpProxy struct {
// contains filtered or unexported fields
}
func NewLocalHttpProxy ¶
func NewLocalHttpProxy(addr string, module string, moduleConf string, grace *gracenet.Net, p ILocalProxy) *LocalHttpProxy
func (*LocalHttpProxy) ServeHTTP ¶
func (self *LocalHttpProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*LocalHttpProxy) Start ¶
func (self *LocalHttpProxy) Start()
func (*LocalHttpProxy) Stop ¶
func (self *LocalHttpProxy) Stop()
type NsqLookupHttpProxy ¶
func (*NsqLookupHttpProxy) GetProxyName ¶
func (self *NsqLookupHttpProxy) GetProxyName() string
func (*NsqLookupHttpProxy) HandleLookup ¶
func (self *NsqLookupHttpProxy) HandleLookup(proxyaddr string, disableCache, disableConvert bool, w http.ResponseWriter, r *http.Request)
func (*NsqLookupHttpProxy) HandleNodes ¶
func (self *NsqLookupHttpProxy) HandleNodes(proxyaddr string, disableCache, disableConvert bool, w http.ResponseWriter, r *http.Request)
func (*NsqLookupHttpProxy) ProxyHandler ¶
func (self *NsqLookupHttpProxy) ProxyHandler(proxyaddr string, w http.ResponseWriter, r *http.Request)
func (*NsqLookupHttpProxy) Stop ¶
func (self *NsqLookupHttpProxy) Stop()
Click to show internal directories.
Click to hide internal directories.