Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultUrl = nats.DefaultURL
View Source
const NodeNamePrefix = "marmot-node"
Variables ¶
View Source
var EntryReplicas = 1
View Source
var MaxLogEntries = int64(1024)
View Source
var StreamNamePrefix = "marmot-changes"
View Source
var SubjectPrefix = "marmot-change-log"
Functions ¶
This section is empty.
Types ¶
type ReplicationEvent ¶
func (*ReplicationEvent[T]) Marshal ¶
func (e *ReplicationEvent[T]) Marshal() ([]byte, error)
func (*ReplicationEvent[T]) Unmarshal ¶
func (e *ReplicationEvent[T]) Unmarshal(data []byte) error
type Replicator ¶
type Replicator struct {
// contains filtered or unexported fields
}
func NewReplicator ¶
func NewReplicator(nodeID uint64, natsServer string, shards uint64) (*Replicator, error)
Click to show internal directories.
Click to hide internal directories.