Documentation
¶
Index ¶
- type Registry
- type Router
- func (r *Router) DestroyIfIdle() bool
- func (r *Router) GetHandlerCount() (count int64)
- func (r *Router) GetInflightReqs() (count int64)
- func (r *Router) GetState() (state State)
- func (r *Router) HandlerStartLocal() (ch <-chan *revproxy.GetProxyRequest)
- func (r *Router) HandlerStartRemote() (ch <-chan *revproxy.GetProxyRequest)
- func (r *Router) HandlerStop()
- func (r *Router) Route(ctx context.Context, req *revproxy.Request)
- func (r *Router) SetRemoteHandlerCounts(urlToHandlerCount map[string]int)
- func (r *Router) WithStartComponentFunc(f StartComponentFunc) *Router
- type StartComponentFunc
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(nodeId string, startCompFunc StartComponentFunc) *Registry
func (*Registry) ByComponent ¶
func (*Registry) WaitForInflightToDrain ¶
func (r *Registry) WaitForInflightToDrain()
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(componentName string, nodeId string, bufferPool *revproxy.ProxyBufferPool, startCompFunc StartComponentFunc) *Router
func (*Router) DestroyIfIdle ¶
func (*Router) GetHandlerCount ¶
func (*Router) GetInflightReqs ¶
func (*Router) HandlerStartLocal ¶
func (r *Router) HandlerStartLocal() (ch <-chan *revproxy.GetProxyRequest)
func (*Router) HandlerStartRemote ¶
func (r *Router) HandlerStartRemote() (ch <-chan *revproxy.GetProxyRequest)
func (*Router) HandlerStop ¶
func (r *Router) HandlerStop()
func (*Router) SetRemoteHandlerCounts ¶
func (*Router) WithStartComponentFunc ¶
func (r *Router) WithStartComponentFunc(f StartComponentFunc) *Router
type StartComponentFunc ¶
type StartComponentFunc func(componentName string)
Click to show internal directories.
Click to hide internal directories.