mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Added interfaces for upcoming interleaver.
This commit is contained in:
parent
c84feab792
commit
8eca3a6e45
25
interleaver/interfaces.go
Normal file
25
interleaver/interfaces.go
Normal file
@ -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
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue
Block a user