github.com/ethersphere/bee/v2@v2.2.0/pkg/file/pipeline/doc.go (about) 1 // Copyright 2020 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 /* 6 Package pipeline provides functionality for hashing pipelines needed to create different flavors of merkelised representations 7 of arbitrary data. 8 The interface exposes an io.Writer and Sum method, for components to use as a black box. 9 Within a pipeline, writers are chainable. It is up for the implementer to decide whether a writer calls the next writer. 10 Implementers should always implement the Sum method and call the next writer's Sum method (in case there is one), returning its result to the calling context. 11 */ 12 package pipeline