mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-15 06:48:08 +02:00
15 lines
243 B
Go
15 lines
243 B
Go
package harvester
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
type Source interface {
|
|
io.ReadCloser
|
|
Name() string
|
|
Stat() (os.FileInfo, error)
|
|
Continuable() bool // can we continue processing after EOF?
|
|
HasState() bool // does this source have a state?
|
|
}
|