Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer( callbackController controller.CallbackController, ) chttp.ServerEngine
NewService initializes http server with options.
Types ¶
type CallbackService ¶
type CallbackService struct {
// contains filtered or unexported fields
}
func (CallbackService) ApplyMiddleware ¶
func (s CallbackService) ApplyMiddleware(middlewares ...func(http.Handler) http.Handler)
ApplyMiddleware useed to apply http server middlewares.
func (*CallbackService) InitializeRoutes ¶
func (s *CallbackService) InitializeRoutes()
InitializeRoutes builds all http routes.
func (*CallbackService) InitializeServer ¶
func (s *CallbackService) InitializeServer() *chi.Mux
InitializeServer sets all injected dependencies.
func (CallbackService) NewHandler ¶
func (s CallbackService) NewHandler() interface { ServeHTTP(w http.ResponseWriter, r *http.Request) }
NewHandler returns http server engine.
Click to show internal directories.
Click to hide internal directories.