backend

package
v0.0.0-...-b10e7cb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// IP of the server
	IP net.IP
	// Port of the server
	Port int
	// contains filtered or unexported fields
}

Backend server

func NewServer

func NewServer(ip string, port int, maxWorker int, database *sql.DB, sentry *raven.Client) *Server

Function that creates a new backend given specific info

func (*Server) GoogleWatcherHandler

func (s *Server) GoogleWatcherHandler(w http.ResponseWriter, r *http.Request)

Method that process the request of a google notification to our server

func (*Server) OutlookWatcherHandler

func (s *Server) OutlookWatcherHandler(w http.ResponseWriter, r *http.Request)

Method that process the request of a outlook notification to our server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Method that process a requests to the server

func (*Server) Start

func (s *Server) Start() (err error)

Method that starts the backend

func (*Server) Stop

func (s *Server) Stop() (err error)

Method that stops the backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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