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 JsonDecode(r io.Reader, i interface{}) error
- 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)
- func UnixMillis(t time.Time) int64
- type CaptureType
- type Iterator
- type Metric
- type NetNSContext
- type PortAllocator
- type ServiceAddress
- type ServiceType
- type SortOrder
- type TimeSlice
- type TimedMetric
Constants ¶
View Source
const ( StoppedState = iota + 1 RunningState StoppingState )
Variables ¶
View Source
var ( InvalidPortRange = errors.New("Invalid port range") NoPortLeft = errors.New("No free port left") )
View Source
var ( CantCompareInterface = errors.New("Can't compare interface") ErrFieldNotFound = errors.New("Field not found") )
View Source
var (
CaptureTypes = map[string]CaptureType{}
)
Functions ¶
func CrossTypeCompare ¶ added in v0.5.0
func Retry ¶
Retry tries to execute the given function until a success applying a delay between each try
Types ¶
type Iterator ¶ added in v0.6.0
type Iterator struct {
// contains filtered or unexported fields
}
type Metric ¶ added in v0.10.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
type PortAllocator ¶ added in v0.10.0
func NewPortAllocator ¶ added in v0.10.0
func NewPortAllocator(min, max int) (*PortAllocator, error)
func (*PortAllocator) Allocate ¶ added in v0.10.0
func (p *PortAllocator) Allocate() (int, error)
func (*PortAllocator) Release ¶ added in v0.10.0
func (p *PortAllocator) Release(i int)
func (*PortAllocator) ReleaseAll ¶ added in v0.10.0
func (p *PortAllocator) ReleaseAll()
func (*PortAllocator) Set ¶ added in v0.10.0
func (p *PortAllocator) Set(i int, obj interface{})
type ServiceAddress ¶ added in v0.10.0
func ServiceAddressFromString ¶ added in v0.10.0
func ServiceAddressFromString(addressPort string) (ServiceAddress, error)
type ServiceType ¶ added in v0.10.0
type ServiceType string
const ( AnalyzerService ServiceType = "analyzer" AgentService ServiceType = "agent" )
func (ServiceType) String ¶ added in v0.10.0
func (st ServiceType) String() string
type TimeSlice ¶ added in v0.10.0
type TimedMetric ¶ added in v0.10.0
func (*TimedMetric) GetField ¶ added in v0.10.0
func (tm *TimedMetric) GetField(field string) (int64, error)
func (*TimedMetric) MarshalJSON ¶ added in v0.10.0
func (tm *TimedMetric) MarshalJSON() ([]byte, error)
Source Files
¶
- capture.go
- common.go
- iterator.go
- ns.go
- port_allocator.go
- service.go
- types.go
Click to show internal directories.
Click to hide internal directories.