2017-09-18 09:21:58 +00:00
|
|
|
package probe
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
2017-09-21 08:38:05 +00:00
|
|
|
func New(configDir string) Probe {
|
|
|
|
p := &probe{
|
|
|
|
configDir: configDir,
|
|
|
|
}
|
2017-09-18 09:21:58 +00:00
|
|
|
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
type Probe interface {
|
|
|
|
Start() error
|
|
|
|
Shutdown(ctx context.Context) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type probe struct {
|
2017-09-21 08:38:05 +00:00
|
|
|
configDir string
|
2017-09-18 09:21:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *probe) Start() error {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *probe) Shutdown(ctx context.Context) error {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|