Documentation
¶
Index ¶
- Constants
- Variables
- func CrossTypeCompare(a interface{}, b interface{}) (int, error)
- func CrossTypeEqual(a interface{}, b interface{}) bool
- func IPToString(ip net.IP) string
- func IPv6Supported() bool
- func IsCaptureAllowed(nodeType string) bool
- func MaxInt64(a, b int64) int64
- func MinInt64(a, b int64) int64
- func Retry(fnc func() error, try int, delay time.Duration) error
- func ToFloat64(f interface{}) (float64, error)
- func ToInt64(i interface{}) (int64, error)
- type CaptureType
- type Iterator
- type NetNSContext
Constants ¶
View Source
const ( StoppedState = iota RunningState StoppingState )
Variables ¶
View Source
var ( CantCompareInterface error = errors.New("Can't compare interface") CaptureTypes = map[string]CaptureType{} )
Functions ¶
func CrossTypeCompare ¶ added in v0.5.0
func CrossTypeEqual ¶
func CrossTypeEqual(a interface{}, b interface{}) bool
func IPToString ¶ added in v0.8.0
func IPv6Supported ¶ added in v0.8.0
func IPv6Supported() bool
func IsCaptureAllowed ¶ added in v0.5.0
Types ¶
type CaptureType ¶ added in v0.7.0
type Iterator ¶ added in v0.6.0
type Iterator struct {
// contains filtered or unexported fields
}
func NewIterator ¶ added in v0.6.0
type NetNSContext ¶ added in v0.8.0
type NetNSContext struct {
// contains filtered or unexported fields
}
func NewNetNsContext ¶ added in v0.8.0
func NewNetNsContext(path string) (*NetNSContext, error)
func (*NetNSContext) Close ¶ added in v0.8.0
func (n *NetNSContext) Close()
func (*NetNSContext) Quit ¶ added in v0.8.0
func (n *NetNSContext) Quit() error
Click to show internal directories.
Click to hide internal directories.