Skip to content

Commit

Permalink
Add logstream interface and allow cloudwatchlogs to implement it (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Siegieda authored and pwaller committed Oct 24, 2018
1 parent 74b76db commit 2c7ee02
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions service/batchlogs/batchlogs.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package batchlogs

import (
"context"
"io"
)

// batchlogs.Service contains functions for streaming logs in real time from a batch job
type Service interface {
// Stream takes a batch job's log stream name and returns an io.ReadCloser
// containing the bytes of the log updated in real time
Stream(ctx context.Context, logName string) io.ReadCloser
}

0 comments on commit 2c7ee02

Please sign in to comment.