13 lines
238 B
Go
13 lines
238 B
Go
|
package stream
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/hashicorp/nomad/nomad/structs"
|
||
|
)
|
||
|
|
||
|
// SinkWriter is the interface used by a ManagedSink to send events to.
|
||
|
type SinkWriter interface {
|
||
|
Send(ctx context.Context, e *structs.Events) error
|
||
|
}
|