1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

Adding transport/reader.go

This commit is contained in:
Henrik Hautakoski 2023-03-07 11:35:13 +01:00
parent 19b93495ee
commit b3f773655d

11
transport/reader.go Normal file
View 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)
}