Please bear in mind that the v8 output module interface is not stable at this time. It will very likely change within the next weeks.
Right now, the rsyslog v8 compatibility doc has some information on the new interface. It is expected that it will remain the best source to get at least an overview of the required changes.
If you browse git, the commit comments should help find more examples on a module-by-module basis.