Chat / pkg /model /filters.go
Baraaqasem's picture
Upload 711 files
651d019 verified
raw
history blame contribute delete
321 Bytes
package model
import (
process "github.com/mudler/go-processmanager"
)
type GRPCProcessFilter = func(id string, p *process.Process) bool
func all(_ string, _ *process.Process) bool {
return true
}
func allExcept(s string) GRPCProcessFilter {
return func(id string, p *process.Process) bool {
return id != s
}
}