mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
5ad7c6e01f
- Add `PostInterrupt` plugin, useful for customization of the **os.Interrupt** singal, before that Iris closed the server automatically. ```go iris.Plugins.PostInterrupt(func(s *Framework){ // when os.Interrupt signal is fired the body of this function will be fired, // you're responsible for closing the server with s.Close() // if that event is not registered then the framework // will close the server for you. /* Do any custom cleanup and finally call the s.Close() remember you have the iris.Plugins.PreClose(func(s *Framework)) event too so you can split your logic in two logically places. */ }) ```
8 lines
325 B
Markdown
8 lines
325 B
Markdown
- Version : **6.0.9**
|
|
|
|
- Operating System:
|
|
|
|
- [x] I have read the [book](https://docs.iris-go.com), [examples](https://github.com/iris-contrib/examples), [contributing file](https://github.com/kataras/iris/blob/master/.github/CONTRIBUTING.md) and **I'm sure that this issue is not posted** & answered before.
|
|
|
|
--------------
|