You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This interface is intended to unify the serving/configuration of OpenAPI endpoints between the fuego.Server and any adaptors. The current fuego.Server will need to be refactored to adhere to this interface. The current interface will look something like
type OpenAPIServable interface {
Serve(openapi *fuego.OpenAPI)
}
The fuego.Server already has it's engine/server net/http Server wrapped. In order accomplish this in the case of adaptor. We will need to wrap our engine and say the gin.Engine into the same struct that adheres to this interface. The current code doing this for our server looks like this
Methods used to print messages should try to adhere to the adaptors logging structure.
A side goal/side effect that may be possible is the removal of the OpenAPIServerConfig as I believe most of this would be able to get into the Engine.OpenAPIConfig
The text was updated successfully, but these errors were encountered:
per comment #337 (comment)
This interface is intended to unify the serving/configuration of OpenAPI endpoints between the
fuego.Server
and any adaptors. The currentfuego.Server
will need to be refactored to adhere to this interface. The current interface will look something likeThe
fuego.Server
already has it's engine/server net/http Server wrapped. In order accomplish this in the case of adaptor. We will need to wrap our engine and say the gin.Engine into the same struct that adheres to this interface. The current code doing this for our server looks like thisMethods used to print messages should try to adhere to the adaptors logging structure.
A side goal/side effect that may be possible is the removal of the
OpenAPIServerConfig
as I believe most of this would be able to get into theEngine.OpenAPIConfig
The text was updated successfully, but these errors were encountered: