ausocean / cloud

GNU General Public License v3.0
1 stars 1 forks source link

AOTV: Convert server to use Fiber (#366) #369

Closed ao-david closed 1 week ago

ao-david commented 1 week ago

This change implements fiber to allow us to more easily share code with openfish.

I am not sure if implementing the service middleware is the best way of handling the service global, since this would require calling

svc := ctx.Locals("service").(*service)

in every handler which needs the service struct. Since the svc struct is already global, we could revert to calling it from the global context.

closes #366