feat(collectors) basic implementation of boring collectors; sender via http(s) to hard coded api route
This commit is contained in:
12
internal/sender/sender.go
Normal file
12
internal/sender/sender.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package sender
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"bugs.watch/agent/internal/aggregate"
|
||||
)
|
||||
|
||||
// Sender sends snapshots somewhere.
|
||||
type Sender interface {
|
||||
Send(ctx context.Context, snap aggregate.Snapshot) error
|
||||
}
|
||||
Reference in New Issue
Block a user