Documentation ¶
Overview ¶
Package local implements DB Transactions for the local "in memory" transport. This implementation basically uses a collection of transaction items that are propagated to registered GO channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BytesTxn ¶
type BytesTxn struct {
// contains filtered or unexported fields
}
BytesTxn is just an concurrent map of Bytes messages The intent is to collect the user data and propagate them when commit happens
func NewBytesTxn ¶
func NewBytesTxn(commit func(map[string]datasync.ChangeValue) error) *BytesTxn
NewBytesTxn is a constructor
type BytesTxnItem ¶
BytesTxnItem is used in BytesTxn
type ProtoTxn ¶
type ProtoTxn struct {
// contains filtered or unexported fields
}
ProtoTxn is a concurrent map of proto messages The intent is to collect the user data and propagate them when commit happens
func NewProtoTxn ¶
func NewProtoTxn(commit func(map[string]datasync.ChangeValue) error) *ProtoTxn
NewProtoTxn is a constructor
Click to show internal directories.
Click to hide internal directories.