proxy

package
v0.0.0-...-da828be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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) Start

func (manager *ClientManager) Start()

Start starts the client manager

func (*ClientManager) WaitForInitialization

func (manager *ClientManager) WaitForInitialization()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL