14 lines
167 B
Go
14 lines
167 B
Go
package main
|
|
|
|
type Node interface {
|
|
Pipeline(chan []byte) chan []byte
|
|
}
|
|
|
|
type Source interface {
|
|
Output() chan []byte
|
|
}
|
|
|
|
type Sink interface {
|
|
Input(chan []byte)
|
|
}
|