34 lines
382 B
Go
34 lines
382 B
Go
package probe
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.loafle.net/overflow/overflow_probes/commons"
|
|
)
|
|
|
|
func New(configDir string) Probe {
|
|
p := &probe{
|
|
configDir: configDir,
|
|
}
|
|
|
|
return p
|
|
}
|
|
|
|
type Probe interface {
|
|
commons.Handler
|
|
}
|
|
|
|
type probe struct {
|
|
configDir string
|
|
}
|
|
|
|
func (p *probe) Listen() error {
|
|
|
|
return nil
|
|
}
|
|
|
|
func (p *probe) Shutdown(ctx context.Context) error {
|
|
|
|
return nil
|
|
}
|