repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatcherRepository

type WatcherRepository struct {
	MongoConnect *mongo.Client
	EtcdConnect  *clientv3.Client
}

func (*WatcherRepository) DeleteByID added in v0.0.2

func (w *WatcherRepository) DeleteByID(dbname, coll string, id string) error

func (*WatcherRepository) DeleteDoc

func (w *WatcherRepository) DeleteDoc(dbname, coll string, name string) error

func (*WatcherRepository) FetchAll

func (w *WatcherRepository) FetchAll(c context.Context)

func (*WatcherRepository) FindDoc added in v0.0.2

func (w *WatcherRepository) FindDoc(dbname, coll string, id string) (int64, error)

func (*WatcherRepository) InsertDoc

func (w *WatcherRepository) InsertDoc(dbname, coll string, data interface{}) error

func (*WatcherRepository) Migration

func (w *WatcherRepository) Migration(c context.Context, key, dbname string)

func (*WatcherRepository) Watch

func (w *WatcherRepository) Watch(c context.Context, key, dbname string)

Jump to

Keyboard shortcuts

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