Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrConflict ¶
type ErrConflict struct {
Port uint
}
ErrConflict is return when trying to add a port in the set that is already present
func (ErrConflict) Error ¶
func (e ErrConflict) Error() string
type UintSet ¶
UintSet is a set containing uint
func NewUint ¶
NewUint creates a new set for uint path if the directory where to store the set on disk the directory pointed by path must exists already
func (*UintSet) Add ¶
Add tries to add port to the set. If port is already present errPortConflict is return otherwise nil is returned
Click to show internal directories.
Click to hide internal directories.