Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLocalPortUsed = errors.New("local port used") ErrPortMappingNotFound = errors.New("port mapping not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddPortMapping ¶
func (*Client) DeletePortMapping ¶
func (*Client) ListPortMapping ¶
func (c *Client) ListPortMapping() ([]*PortMappingInfo, error)
type PortMappingInfo ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) AddPortMapping ¶
func (*Proxy) DeletePortMapping ¶
func (*Proxy) ListPortMapping ¶
func (p *Proxy) ListPortMapping() []*PortMappingInfo
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddPortMapping ¶
func (s *Store) AddPortMapping(pm *PortMappingInfo) error
func (*Store) CleanAndUpdate ¶
func (s *Store) CleanAndUpdate(pms []*PortMappingInfo) error
func (*Store) DeletePortMapping ¶
func (*Store) GetAllPortMapping ¶
func (s *Store) GetAllPortMapping() ([]*PortMappingInfo, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.