server

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(port int, routes *Router)

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 HandlerFunc func(req Request) Response

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(integrationsStorage domain.IntegrationsStorage, togglClient domain.TogglClient) *Middleware

type Params

type Params struct {
	Version   string
	Revision  string
	BuildTime string
}

type Request

type Request struct {
	// contains filtered or unexported fields
}

type Response

type Response struct {
	// contains filtered or unexported fields
}

type Router

type Router struct {
	Routes        *mux.Router
	CorsWhiteList []string
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(corsWhiteList []string) *Router

func (*Router) AttachHandlers

func (router *Router) AttachHandlers(c *Controller, mw *Middleware) *Router

func (*Router) ServeHTTP

func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL