Documentation ¶
Index ¶
- Constants
- func AllocatePort(namespacedCount map[string]int) (map[string][]int32, error)
- func ChoosePortByIteration(segmentList *SegmentList, checkPortValid FuncCheckPortValid, basePort int, ...) (int, int, bool)
- func ChoosePortByRandom(segmentList *SegmentList, checkPortValid FuncCheckPortValid, retryCount int) (int, int, bool)
- func ScanPortProviders()
- type BaseInfo
- type FuncCheckPortValid
- type Provider
- type ProviderManager
- type Segment
- type SegmentList
- type VerifyInfo
Constants ¶
View Source
const (
DefaultMaxNotVerifiedPortAge = 300
)
Variables ¶
This section is empty.
Functions ¶
func ChoosePortByIteration ¶
func ChoosePortByIteration(segmentList *SegmentList, checkPortValid FuncCheckPortValid, basePort int, basePortIdx int) (int, int, bool)
func ChoosePortByRandom ¶
func ChoosePortByRandom(segmentList *SegmentList, checkPortValid FuncCheckPortValid, retryCount int) (int, int, bool)
func ScanPortProviders ¶
func ScanPortProviders()
Types ¶
type FuncCheckPortValid ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func GetPortProvider ¶
func (*Provider) CheckNotVerified ¶
func (pp *Provider) CheckNotVerified()
func (*Provider) DeleteIndeed ¶
func (*Provider) PortToVerifyCount ¶
type ProviderManager ¶
type ProviderManager struct {
// contains filtered or unexported fields
}
type SegmentList ¶
type SegmentList struct {
// contains filtered or unexported fields
}
func NewSegmentList ¶
func NewSegmentList(segments []Segment) *SegmentList
func (*SegmentList) Count ¶
func (sl *SegmentList) Count() int
type VerifyInfo ¶
type VerifyInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.