MCPcopy Create free account
hub / github.com/Permify/permify / Watch

Struct Watch

internal/storage/postgres/watch.go:26–35  ·  view source on GitHub ↗

Watch is an implementation of the storage.Watch interface, which is used

Source from the content-addressed store, hash-verified

24
25// Watch is an implementation of the storage.Watch interface, which is used
26type Watch struct {
27 // database is a pointer to a Postgres database instance, which is used
28 // to perform operations on the relationship data.
29 database *db.Postgres
30
31 // txOptions holds the configuration for database transactions, such as
32 // isolation level and read-only mode, to be applied when performing
33 // operations on the relationship data.
34 txOptions pgx.TxOptions
35}
36
37// NewWatcher returns a new instance of the Watch.
38func NewWatcher(database *db.Postgres) *Watch {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected