This commit is contained in:
crusader
2017-09-21 20:04:30 +09:00
parent 726b24f878
commit 5a9359c3af
10 changed files with 95 additions and 34 deletions

View File

@@ -2,6 +2,8 @@ package probe
import (
"context"
"git.loafle.net/overflow/overflow_probes/commons"
)
func New(configDir string) Probe {
@@ -13,15 +15,14 @@ func New(configDir string) Probe {
}
type Probe interface {
Start() error
Shutdown(ctx context.Context) error
commons.Handler
}
type probe struct {
configDir string
}
func (p *probe) Start() error {
func (p *probe) Listen() error {
return nil
}