server

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package server contains the core of the autodeb server. It creates all dependencies injects them at the right place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the main server. It has dput-compatible interface and provides REST API.

func New added in v0.3.0

func New(cfg *config.Config, loggingOutput io.Writer) (*Server, error)

New creates a Server

func (*Server) Shutdown added in v0.4.0

func (srv *Server) Shutdown(ctx context.Context) error

Shutdown will gracefully stop the server

Directories

Path Synopsis
Package appctx implements the application's context.
Package appctx implements the application's context.
Package auth contains implementations of authentification backends
Package auth contains implementations of authentification backends
disabled
Package disabled implements a disabled authentification backend.
Package disabled implements a disabled authentification backend.
oauth
Package oauth implements an authentification backend based on OAuth.
Package oauth implements an authentification backend based on OAuth.
Package database is responsible for all database logic.
Package database is responsible for all database logic.
Package router provides the main router.
Package router provides the main router.
api
webpages
Package webpages contains handlers that serve autodeb-server's web pages
Package webpages contains handlers that serve autodeb-server's web pages
Package models defines all models used within the application.
Package models defines all models used within the application.
Package services implements the bulk of the application logic.
Package services implements the bulk of the application logic.
pgp

Jump to

Keyboard shortcuts

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