mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
refactor(v2): init events (#7823)
creates events structures for initial projections and read models
This commit is contained in:
@@ -137,3 +137,11 @@ type AnyType[T interface{}] struct{}
|
||||
func (a AnyType[T]) Match(v driver.Value) bool {
|
||||
return reflect.TypeOf(new(T)).Elem().Kind().String() == reflect.TypeOf(v).Kind().String()
|
||||
}
|
||||
|
||||
var NilArg nilArgument
|
||||
|
||||
type nilArgument struct{}
|
||||
|
||||
func (a nilArgument) Match(v driver.Value) bool {
|
||||
return reflect.ValueOf(v).IsNil()
|
||||
}
|
||||
|
Reference in New Issue
Block a user