mirror of
https://github.com/pikami/cosmium.git
synced 2024-11-26 07:27:42 +00:00
16 lines
356 B
Go
16 lines
356 B
Go
|
package repositories
|
||
|
|
||
|
var triggers = []Trigger{}
|
||
|
|
||
|
func GetAllTriggers(databaseId string, collectionId string) ([]Trigger, RepositoryStatus) {
|
||
|
sps := make([]Trigger, 0)
|
||
|
|
||
|
for _, coll := range triggers {
|
||
|
if coll.internals.databaseId == databaseId && coll.internals.collectionId == collectionId {
|
||
|
sps = append(sps, coll)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return sps, StatusOk
|
||
|
}
|