Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks should be defined in the server implementation #79

Open
alelb opened this issue Mar 20, 2018 · 0 comments
Open

Hooks should be defined in the server implementation #79

alelb opened this issue Mar 20, 2018 · 0 comments
Labels

Comments

@alelb
Copy link
Collaborator

alelb commented Mar 20, 2018

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?

@alelb alelb added the question label Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant