Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer( authController controller.AuthController, editorController controller.EditorController, convertController convert.ConvertController, sessionMiddleware middleware.SessionMiddleware, credentials *oauth2.Config, ) shttp.ServerEngine
NewService initializes http server with options.
Types ¶
type GdriveHTTPService ¶
type GdriveHTTPService struct {
// contains filtered or unexported fields
}
func (GdriveHTTPService) ApplyMiddleware ¶
func (s GdriveHTTPService) ApplyMiddleware(middlewares ...func(http.Handler) http.Handler)
ApplyMiddleware useed to apply http server middlewares.
func (*GdriveHTTPService) InitializeRoutes ¶
func (s *GdriveHTTPService) InitializeRoutes()
InitializeRoutes builds all http routes.
func (*GdriveHTTPService) InitializeServer ¶
func (s *GdriveHTTPService) InitializeServer() *mux.Router
InitializeServer sets all injected dependencies.
func (GdriveHTTPService) NewHandler ¶
func (s GdriveHTTPService) NewHandler() interface { ServeHTTP(w http.ResponseWriter, r *http.Request) }
NewHandler returns http server engine.
Click to show internal directories.
Click to hide internal directories.