Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorPreserveIsNotSupported = errors.New("this pipe does not support preserve")
)
View Source
var (
ErrorSessionIsNotAvailable = errors.New("session is not available")
)
Functions ¶
This section is empty.
Types ¶
type Factory ¶
func NopFactory ¶
func NopFactory() Factory
type Preserver ¶
type Preserver interface { // Start preserve session Start() error // Add data to the preserver // Persistent store will be cleaned up when the operation failure. Add(d []byte) error // Commit data to the persistent store // Persistent store will be cleaned up when the operation failure. Commit(info []byte) (sessionId string, err error) }
func NopPreserver ¶
func NopPreserver() Preserver
Click to show internal directories.
Click to hide internal directories.