Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePortPool ¶
type FakePortPool struct {
AcquireError error
RemoveError error
Acquired []uint32
Released []uint32
Removed []uint32
// contains filtered or unexported fields
}
func New ¶
func New(start uint32) *FakePortPool
func (*FakePortPool) Acquire ¶
func (p *FakePortPool) Acquire() (uint32, error)
func (*FakePortPool) Release ¶
func (p *FakePortPool) Release(port uint32)
func (*FakePortPool) Remove ¶
func (p *FakePortPool) Remove(port uint32) error
Click to show internal directories.
Click to hide internal directories.