mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-09 17:53:41 +00:00
fbeab4c582
* feat: eventstore repository * fix: remove gorm * version * feat: pkg * feat: eventstore without eventstore-lib * rename files * gnueg * fix: add object * fix: global model * feat(eventstore): sdk * fix(eventstore): search query * fix(eventstore): rename app to eventstore * delete empty test * remove unused func * merge master * fix(eventstore): tests * fix(models): delete unused struct * feat(eventstore): implemented push events * feat(eventstore): overwrite context data * feat(types): SQL-config * feat(eventstore): options to overwrite editor * Update internal/eventstore/models/field.go Co-Authored-By: livio-a <livio.a@gmail.com> * fix(eventstore): code quality * fix(eventstore): rename modifier* to editor* * fix(eventstore): delete editor_org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com> Co-authored-by: livio-a <livio.a@gmail.com>
27 lines
415 B
Go
27 lines
415 B
Go
package model
|
|
|
|
// code below could be generated
|
|
type SearchMethod Enum
|
|
|
|
var methods = []string{"Equals", "StartsWith", "Contains"}
|
|
|
|
type method int32
|
|
|
|
func (s method) String() string {
|
|
return methods[s]
|
|
}
|
|
|
|
const (
|
|
Equals method = iota
|
|
StartsWith
|
|
Contains
|
|
)
|
|
|
|
func SearchMethodToInt(s SearchMethod) int32 {
|
|
return int32(s.(method))
|
|
}
|
|
|
|
func SearchMethodFromInt(index int32) SearchMethod {
|
|
return method(index)
|
|
}
|