Documentation ¶
Overview ¶
Package service manage the service controllers and the HTTP server.
Index ¶
Constants ¶
const ( MusicResearcher = "music-researcher" Downloader = "downloader" )
Keys used to retrieve controller configuration and set the routes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds the server helper from the framework, the HTTP server/router, the list of active controllers and a logger.
It manages the initialization of the controllers from the configuration, and closing them when it shuts down.
func NewService ¶
func NewService(opt ServiceOptions) (*Service, error)
@title Gateway Front API @version 0.0.1 @description This application provides a front gateway allowing you @description to interact with multiple GRPC microservices hosted @description in Google Cloud @termsOfService No terms @contact.name Support @contact.email florian.charpentier67@gmail.com @license.name MIT @license.url http://opensource.org/licenses/MIT @host api.dadard.fr @BasePath / @accept json @produce json @schemes https