Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterChunks ¶
func FilterChunks(input []types.StoredItem) []types.StoredItem
func NotEmptyJoin ¶
Similar to to `strings.Join`, but ignores blank strings
func RandomString ¶
RandomString generates a random string of length n. The characters drawn are alphanumeric. The first string is always a letter. The strings are not cryptographically random.
Types ¶
type DefaultChunkUtils ¶
type DefaultChunkUtils struct { ChunkSize uint64 Server rsstorage.StorageServer Waiter rsstorage.ChunkWaiter Notifier rsstorage.ChunkNotifier PollTimeout time.Duration MaxAttempts int }
func (*DefaultChunkUtils) ReadChunked ¶
func (w *DefaultChunkUtils) ReadChunked(dir, address string) (io.ReadCloser, *types.ChunksInfo, int64, time.Time, error)
func (*DefaultChunkUtils) WriteChunked ¶
Click to show internal directories.
Click to hide internal directories.