Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Add(key string, value []byte, mType string)
- func (h *Handler) OpLog(from string) [][]byte
- func (h *Handler) Remove(key string)
- func (h *Handler) Replicate(op *OpLog)
- func (h *Handler) SetProcessChannel(ch chan *OpLog)
- func (h *Handler) SetReplicaChannel(ch chan *OpLog)
- func (h *Handler) SetReplicator(rep Replicator)
- func (h *Handler) Start(db *db.DB)
- func (h *Handler) Stop()
- type InAppReplicator
- type OpLog
- type Opn
- type PeeringReplicator
- type Replicator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) SetProcessChannel ¶
func (*Handler) SetReplicaChannel ¶
func (*Handler) SetReplicator ¶
func (h *Handler) SetReplicator(rep Replicator)
type InAppReplicator ¶
type InAppReplicator struct {
Buffer chan *OpLog
}
func (*InAppReplicator) Send ¶
func (r *InAppReplicator) Send(op *OpLog) error
type OpLog ¶
type PeeringReplicator ¶
type PeeringReplicator struct {
Queue *memberlist.TransmitLimitedQueue
}
func (*PeeringReplicator) Send ¶
func (r *PeeringReplicator) Send(op *OpLog) error
type Replicator ¶
Click to show internal directories.
Click to hide internal directories.