web

package
v0.0.0-...-2dc3ea6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MotherInterface

type MotherInterface interface {
	Registrar() services.Registrar
	EmailRecipe() postal.EmailRecipe
	UserRecipe() postal.UserRecipe
	SpaceRecipe() postal.SpaceRecipe
	OrganizationRecipe() postal.OrganizationRecipe
	NotificationFinder() services.NotificationFinder
	PreferencesFinder() *services.PreferencesFinder
	PreferenceUpdater() services.PreferenceUpdater
	TemplateServiceObjects() (services.TemplateFinder, services.TemplateUpdater, services.TemplateDeleter)
	Database() models.DatabaseInterface
	Logging() stack.Middleware
	ErrorWriter() handlers.ErrorWriter
	Authenticator(...string) middleware.Authenticator
	CORS() middleware.CORS
}

type Router

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

func NewRouter

func NewRouter(mother MotherInterface) Router

func (Router) Routes

func (router Router) Routes() *mux.Router

type Server

type Server struct {
}

func NewServer

func NewServer() Server

func (Server) Run

func (s Server) Run(port string, mother MotherInterface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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