Documentation ¶
Index ¶
- func Start(port int, routes *Router)
- type Controller
- func (c *Controller) CreateAuthorizationHandler(req Request) Response
- func (c *Controller) CreatePipeHandler(req Request) Response
- func (c *Controller) DeleteAuthorizationHandler(req Request) Response
- func (c *Controller) DeletePipeHandler(req Request) Response
- func (c *Controller) GetAuthURLHandler(req Request) Response
- func (c *Controller) GetIntegrationsHandler(req Request) Response
- func (c *Controller) GetServiceAccountsHandler(req Request) Response
- func (c *Controller) GetServicePipeLogHandler(req Request) Response
- func (c *Controller) GetServiceUsersHandler(req Request) Response
- func (c *Controller) GetStatusHandler(Request) Response
- func (c *Controller) PostPipeRunHandler(req Request) Response
- func (c *Controller) PostServicePipeClearIDMappingsHandler(req Request) Response
- func (c *Controller) ReadPipeHandler(req Request) Response
- func (c *Controller) UpdatePipeHandler(req Request) Response
- type HandlerFunc
- type Middleware
- type Params
- type Request
- type Response
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct { Params // contains filtered or unexported fields }
func NewController ¶
func NewController(pipeService domain.PipeService, pipeSyncService domain.PipeSyncService, healthCheckService domain.HealthCheckService, authorizationService domain.AuthorizationService, integrationsStorage domain.IntegrationsStorage, queue domain.Queue, params Params) *Controller
func (*Controller) CreateAuthorizationHandler ¶
func (c *Controller) CreateAuthorizationHandler(req Request) Response
func (*Controller) CreatePipeHandler ¶
func (c *Controller) CreatePipeHandler(req Request) Response
func (*Controller) DeleteAuthorizationHandler ¶
func (c *Controller) DeleteAuthorizationHandler(req Request) Response
func (*Controller) DeletePipeHandler ¶
func (c *Controller) DeletePipeHandler(req Request) Response
func (*Controller) GetAuthURLHandler ¶
func (c *Controller) GetAuthURLHandler(req Request) Response
func (*Controller) GetIntegrationsHandler ¶
func (c *Controller) GetIntegrationsHandler(req Request) Response
func (*Controller) GetServiceAccountsHandler ¶
func (c *Controller) GetServiceAccountsHandler(req Request) Response
func (*Controller) GetServicePipeLogHandler ¶
func (c *Controller) GetServicePipeLogHandler(req Request) Response
func (*Controller) GetServiceUsersHandler ¶
func (c *Controller) GetServiceUsersHandler(req Request) Response
func (*Controller) GetStatusHandler ¶
func (c *Controller) GetStatusHandler(Request) Response
func (*Controller) PostPipeRunHandler ¶
func (c *Controller) PostPipeRunHandler(req Request) Response
func (*Controller) PostServicePipeClearIDMappingsHandler ¶
func (c *Controller) PostServicePipeClearIDMappingsHandler(req Request) Response
PostServicePipeClearIDMappingsHandler clears mappings between pipes entities. Deprecated: TODO: Remove dead method. It's used only in h4xx0rz(old Backoffice) https://github.com/toggl/support/blob/master/app/controllers/workspaces_controller.rb#L145
func (*Controller) ReadPipeHandler ¶
func (c *Controller) ReadPipeHandler(req Request) Response
func (*Controller) UpdatePipeHandler ¶
func (c *Controller) UpdatePipeHandler(req Request) Response
type HandlerFunc ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(integrationsStorage domain.IntegrationsStorage, togglClient domain.TogglClient) *Middleware
type Router ¶
type Router struct { Routes *mux.Router CorsWhiteList []string // contains filtered or unexported fields }
func (*Router) AttachHandlers ¶
func (router *Router) AttachHandlers(c *Controller, mw *Middleware) *Router
Click to show internal directories.
Click to hide internal directories.