overflow_probes/probe/probe.go

34 lines
382 B
Go
Raw Normal View History

2017-09-18 09:21:58 +00:00
package probe
import (
"context"
2017-09-21 11:04:30 +00:00
"git.loafle.net/overflow/overflow_probes/commons"
2017-09-18 09:21:58 +00:00
)
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 {
2017-09-21 11:04:30 +00:00
commons.Handler
2017-09-18 09:21:58 +00:00
}
type probe struct {
2017-09-21 08:38:05 +00:00
configDir string
2017-09-18 09:21:58 +00:00
}
2017-09-21 11:04:30 +00:00
func (p *probe) Listen() error {
2017-09-18 09:21:58 +00:00
return nil
}
func (p *probe) Shutdown(ctx context.Context) error {
return nil
}