snapshot

package
v0.0.0-...-fd38b90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrToBytes

func StrToBytes(s string) []byte

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

func NewCollection

func NewCollection() *Collection

func (*Collection) Watch

func (c *Collection) Watch(fn func(string, uint64, *nats.Msg)) error

type CollectionWatcher

type CollectionWatcher struct {
	// contains filtered or unexported fields
}

func NewCollectionWatcher

func NewCollectionWatcher(client *core.Client, domain string) *CollectionWatcher

func (*CollectionWatcher) GetCollection

func (ew *CollectionWatcher) GetCollection(name string) *Collection

func (*CollectionWatcher) RegisterCollection

func (ew *CollectionWatcher) RegisterCollection(name string) *Collection

func (*CollectionWatcher) UnregisterCollection

func (ew *CollectionWatcher) UnregisterCollection(name string)

func (*CollectionWatcher) Watch

func (ew *CollectionWatcher) Watch(fn func(string, uint64, *nats.Msg)) error

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func New

func New(lifecycle fx.Lifecycle, config *configs.Config, l *zap.Logger, c *connector.Connector) *Snapshot

func (*Snapshot) Run

func (d *Snapshot) Run() error

type SnapshotHandler

type SnapshotHandler struct {
}

func NewSnapshotHandler

func NewSnapshotHandler() *SnapshotHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL