feat: observe changes in repository to automatically clear cache
All checks were successful
Cadoles/bouncer/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/bouncer/pipeline/pr-master This commit looks good
This commit is contained in:
11
internal/store/observable.go
Normal file
11
internal/store/observable.go
Normal file
@ -0,0 +1,11 @@
|
||||
package store
|
||||
|
||||
import "context"
|
||||
|
||||
type Change interface {
|
||||
Change()
|
||||
}
|
||||
|
||||
type Observable interface {
|
||||
Changes(ctx context.Context, fn func(Change))
|
||||
}
|
Reference in New Issue
Block a user