Categorygithub.com/ethersphere/langos
modulepackage
1.0.0
Repository: https://github.com/ethersphere/langos.git
Documentation: pkg.go.dev

# README

Langos

langos

Author

Originally developed by @janos and @acud in https://github.com/ethersphere/swarm/tree/master/api/http/langos and has been copied as is from its origin.

# Functions

NewBufferedLangos wraps a new Langos with BufferedReadSeeker and returns it.
NewBufferedReadSeeker creates a new instance of BufferedReadSeeker, out of io.ReadSeeker.
NewLangos bakes a new yummy langos that peeks on provided reader when its Read method is called.

# Structs

BufferedReadSeeker wraps bufio.Reader to expose Seek method from the provided io.ReadSeeker in NewBufferedReadSeeker.
Langos is a reader with a lookahead peekBuffer this is the most naive implementation of a lookahead peekBuffer it should issue a lookahead Read when a Read is called, hence the name - langos |--->====>>------------| cur topmost the first read is not a lookahead but the rest are so, it could be that a lookahead read might need to wait for a previous read to finish due to resource pooling All Read and Seek method call must be synchronous.

# Interfaces

Reader contains all methods that Langos needs to read data from.