bring in khatru and eventstore.
This commit is contained in:
13
eventstore/negentropy.go
Normal file
13
eventstore/negentropy.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package eventstore
|
||||
|
||||
import "context"
|
||||
|
||||
var negentropySessionKey = struct{}{}
|
||||
|
||||
func IsNegentropySession(ctx context.Context) bool {
|
||||
return ctx.Value(negentropySessionKey) != nil
|
||||
}
|
||||
|
||||
func SetNegentropy(ctx context.Context) context.Context {
|
||||
return context.WithValue(ctx, negentropySessionKey, struct{}{})
|
||||
}
|
||||
Reference in New Issue
Block a user