func (t *TimeWindowedStore) GetWindowSize() time.Duration {
	return t.windowSize
}
GetWindowSize returns the windowSize.
package window
import (
	"sync"
	"time"
	werror "github.com/palantir/witchcraft-go-error"
)
type ItemWithTimestamp struct {
	Time time.Time
	Item interface{}
}
type TimeWindowedStore struct {
	items      []ItemWithTimestamp
	itemsMutex sync.Mutex
	windowSize time.Duration
}
func NewTimeWindowedStore(windowSize time.Duration) (*TimeWindowedStore, error) {
	if windowSize <= 0 {
		return nil, werror.Error("windowSize must be positive", werror.SafeParam("windowSize", windowSize))
	}
	return &TimeWindowedStore{
		windowSize: windowSize,
	}, nil
}