diff --git a/interleaver/interfaces.go b/interleaver/interfaces.go new file mode 100644 index 0000000..dd2c1b5 --- /dev/null +++ b/interleaver/interfaces.go @@ -0,0 +1,25 @@ +// Copyright 2014 by Sascha L. Teichmann +// Use of this source code is governed by the MIT license +// that can be found in the LICENSE file. + +package main + +import "bitbucket.org/s_l_teichmann/mtredisalize/common" + +type ( + Block struct { + Coord common.Coord + Data []byte + } + + BlocKProducer interface { + Next() (Block, error) + HasNext() bool + Close() error + } + + BlockConsumer interface { + Consume(Block) + Close() error + } +)