fabbricadigitale / scimd

SCIM v2 golang implementation
MIT License
5 stars 1 forks source link

Hooks should be defined in the server implementation #79

Open alelb opened 6 years ago

alelb commented 6 years ago

Something like this:

func main() {
    cmd.Execute()
    cmd.On("create", doSomething())
    cmd.On("delete", doSomethingElse())
}

For example doSomething() and doSomethingElse() could be a funcs that handles relationships between your schema's entities for you. The schema is defined by configuration and then changes from one implementation to another. So this hooks or listeners have to be defined in the server implementation.

@leogr, @leodido what do you think about that? That's the way?