refactor: change the code's whole structure
This commit is contained in:
parent
a659154937
commit
96637019c1
13 changed files with 295 additions and 52 deletions
pkg/program
9
pkg/program/program.go
Normal file
9
pkg/program/program.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package program // import nocternity.net/go-monitoring/pkg/program
|
||||
|
||||
type Program interface {
|
||||
CheckArguments() bool
|
||||
RunCheck()
|
||||
Done()
|
||||
}
|
||||
|
||||
type ProgramBuilder func() Program
|
Loading…
Add table
Add a link
Reference in a new issue