Documentation ¶
Overview ¶
Package local implements DB Transactions for the local "in memory" transport. This implementation uses a collection of transaction items that are propagated to registered GO channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransport = syncbase.NewRegistry()
DefaultTransport is a default registry.
Functions ¶
Types ¶
type BytesTxn ¶
type BytesTxn struct {
// contains filtered or unexported fields
}
BytesTxn is just a 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.
func (*BytesTxn) Delete ¶
Delete add delete operation into transaction.
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.
func (*ProtoTxn) Delete ¶
Delete adds delete operation into transaction.
Click to show internal directories.
Click to hide internal directories.