2023-10-16 06:27:21 +00:00
|
|
|
package data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type VersionsStream interface {
|
|
|
|
Next(ctx context.Context) (*NodeVersion, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// todo consider thread safe
|
|
|
|
type ListSession struct {
|
2024-01-17 14:26:02 +00:00
|
|
|
Next *NodeVersion
|
2023-10-16 06:27:21 +00:00
|
|
|
Stream VersionsStream
|
|
|
|
NamesMap map[string]struct{}
|
|
|
|
Context context.Context
|
|
|
|
Cancel context.CancelFunc
|
|
|
|
}
|