2023-10-16 06:27:21 +00:00
|
|
|
package data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2024-01-19 09:53:53 +00:00
|
|
|
"sync/atomic"
|
2023-10-16 06:27:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type VersionsStream interface {
|
|
|
|
Next(ctx context.Context) (*NodeVersion, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListSession struct {
|
2024-01-19 06:26:58 +00:00
|
|
|
Next []*NodeVersion
|
2023-10-16 06:27:21 +00:00
|
|
|
Stream VersionsStream
|
|
|
|
NamesMap map[string]struct{}
|
|
|
|
Context context.Context
|
|
|
|
Cancel context.CancelFunc
|
2024-01-19 09:53:53 +00:00
|
|
|
Acquired atomic.Bool
|
2023-10-16 06:27:21 +00:00
|
|
|
}
|