Documentation ¶
Index ¶
Constants ¶
View Source
const (
SimpleFormatVersionFirst = iota + 1
)
Variables ¶
View Source
var (
ErrorIncompatibleSessionData = errors.New("incompatible session data")
)
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // Create a new pipe New(batchId string) Pipe // Restore a pipe from the session Restore(id SessionId) (pipe Pipe, err error) }
Pipe factory
func NewTransientSimple ¶
type Pipe ¶
type Pipe interface { // Enqueue the data Enqueue(d []byte) // Dequeue the data from the pipe. Returns nil if the pipe is empty. Dequeue() (d []byte) // Delete the data. Delete(d []byte) // Size of the pipe. Size() int // Close & clean up this pipe. Close() // Close & preserve the state Preserve() (id SessionId, err error) }
Click to show internal directories.
Click to hide internal directories.