mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-26 10:43:42 +02:00
Adding transport/reader.go
This commit is contained in:
parent
19b93495ee
commit
b3f773655d
1 changed files with 11 additions and 0 deletions
11
transport/reader.go
Normal file
11
transport/reader.go
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
package transport
|
||||||
|
|
||||||
|
// Reader interface defines the required method
|
||||||
|
// to read a message from an channel.
|
||||||
|
//
|
||||||
|
// This is a low-level interface typically implemented by transport drivers.
|
||||||
|
type Reader interface {
|
||||||
|
// Read a message from a channel.
|
||||||
|
// Read may block until a message is ready or an error occured.
|
||||||
|
Read(channel ChannelInterface) ([]byte, error)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue