add s3 stream support

This commit is contained in:
wanglei.w
2021-04-15 17:47:07 +08:00
parent bb39562fae
commit 180149a7c9
8 changed files with 120 additions and 8 deletions

View File

@@ -17,6 +17,14 @@ type Stream struct {
Context context.Context
}
type RunHook struct {
f func()
done <-chan struct{}
closer interface {
Close() error
}
}
func NewStream(node *Node, streamType string, label Label, selector Selector) *Stream {
return &Stream{
Node: node,