mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* Fixed up api.md, removed Titan references. * Adding more documentation on running in production. * Update deps for ironmq.
19 lines
530 B
Markdown
19 lines
530 B
Markdown
# Extending IronFunctions
|
|
|
|
IronFunctions is extensible so you can add custom functionality and extend the project without needing to modify the core.
|
|
|
|
## Listeners
|
|
|
|
Listeners are the main way to extend IronFunctions.
|
|
|
|
To add listeners, copy `main.go` into your own repo and add your own listener implementations. When ready,
|
|
compile your main package to create your extended version of IronFunctions.
|
|
|
|
### AppListener
|
|
|
|
Implement `ifaces/AppListener` interface, then add it using:
|
|
|
|
```go
|
|
server.AddAppListener(myAppListener)
|
|
```
|