Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd is a struct implementing Collector interface. It collects command output for given command configured with Cmd field
type Collector ¶
type Collector interface { // Name returns the Name of this collector Name() string // Optional returns true if Collector is not mandatory and failures should be ignored Optional() bool // Collect returns collected data Collect(ctx context.Context) (goio.ReadCloser, error) }
Collector is the interface to abstract data collection from different sources
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint is a struct implementing Collector interface. It collects HTTP response for given url
func NewEndpoint ¶
type Systemd ¶
type Systemd struct {
// contains filtered or unexported fields
}
Systemd is a struct implementing Collector interface. It collects journal logs for given unit
func NewSystemd ¶
Click to show internal directories.
Click to hide internal directories.