Documentation ¶
Index ¶
- func NewStateManager(clientManager *ClientManager) *stateManager
- type ClientManager
- func (manager *ClientManager) AllForwardingRules() []*proxcom.ForwardingRule
- func (manager *ClientManager) AllForwardingRulesTargetingClient(clientName string) []*proxcom.ForwardingRule
- func (manager *ClientManager) AllRulesTargetingUs() []*proxcom.ForwardingRule
- func (manager *ClientManager) GetChannelMemberInfo() *proxcom.ChannelMember
- func (manager *ClientManager) Start()
- func (manager *ClientManager) WaitForInitialization()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateManager ¶
func NewStateManager(clientManager *ClientManager) *stateManager
NewStateManager creates a new state manager
Types ¶
type ClientManager ¶
type ClientManager struct { Client *proxy.ProxyClient StateManager *stateManager Initialized bool ForwardingRules []*proxcom.ForwardingRule }
func NewClientManager ¶
func NewClientManager(client *proxy.ProxyClient, forwardingRules []*proxcom.ForwardingRule) *ClientManager
NewClientManager creates a new client manager
func (*ClientManager) AllForwardingRules ¶
func (manager *ClientManager) AllForwardingRules() []*proxcom.ForwardingRule
AllForwardingRules returns all forwarding rules for this client and all remote clients
func (*ClientManager) AllForwardingRulesTargetingClient ¶
func (manager *ClientManager) AllForwardingRulesTargetingClient(clientName string) []*proxcom.ForwardingRule
AllForwardingRulesTargetingClient returns all forwarding rules that target a specific client @param clientName the name of the client we are looking for rules targeting
func (*ClientManager) AllRulesTargetingUs ¶
func (manager *ClientManager) AllRulesTargetingUs() []*proxcom.ForwardingRule
AllRulesTargetingUs returns all forwarding rules that target this client
func (*ClientManager) GetChannelMemberInfo ¶
func (manager *ClientManager) GetChannelMemberInfo() *proxcom.ChannelMember
GetChannelMemberInfo returns the channel member info for THIS client
func (*ClientManager) WaitForInitialization ¶
func (manager *ClientManager) WaitForInitialization()
Click to show internal directories.
Click to hide internal directories.