Documentation ¶
Index ¶
- Constants
- type DefaultOutboundHandlerManager
- func (v *DefaultOutboundHandlerManager) GetDefaultHandler() proxy.OutboundHandler
- func (v *DefaultOutboundHandlerManager) GetHandler(tag string) proxy.OutboundHandler
- func (v *DefaultOutboundHandlerManager) Release()
- func (v *DefaultOutboundHandlerManager) SetDefaultHandler(handler proxy.OutboundHandler)
- func (v *DefaultOutboundHandlerManager) SetHandler(tag string, handler proxy.OutboundHandler)
- type InboundHandlerManager
- type OutboundHandlerManager
Constants ¶
View Source
const ( APP_ID_INBOUND_MANAGER = app.ID(4) APP_ID_OUTBOUND_MANAGER = app.ID(6) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultOutboundHandlerManager ¶
type DefaultOutboundHandlerManager struct { sync.RWMutex // contains filtered or unexported fields }
func NewDefaultOutboundHandlerManager ¶
func NewDefaultOutboundHandlerManager() *DefaultOutboundHandlerManager
func (*DefaultOutboundHandlerManager) GetDefaultHandler ¶
func (v *DefaultOutboundHandlerManager) GetDefaultHandler() proxy.OutboundHandler
func (*DefaultOutboundHandlerManager) GetHandler ¶
func (v *DefaultOutboundHandlerManager) GetHandler(tag string) proxy.OutboundHandler
func (*DefaultOutboundHandlerManager) Release ¶
func (v *DefaultOutboundHandlerManager) Release()
func (*DefaultOutboundHandlerManager) SetDefaultHandler ¶
func (v *DefaultOutboundHandlerManager) SetDefaultHandler(handler proxy.OutboundHandler)
func (*DefaultOutboundHandlerManager) SetHandler ¶
func (v *DefaultOutboundHandlerManager) SetHandler(tag string, handler proxy.OutboundHandler)
type InboundHandlerManager ¶
type InboundHandlerManager interface {
GetHandler(tag string) (proxy.InboundHandler, int)
}
type OutboundHandlerManager ¶
type OutboundHandlerManager interface { GetHandler(tag string) proxy.OutboundHandler GetDefaultHandler() proxy.OutboundHandler }
Click to show internal directories.
Click to hide internal directories.