platform

package module
v0.0.0-...-894ab8b Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2014 License: MIT Imports: 7 Imported by: 0

README

platform

Main Polyglottis Repository

Documentation

Overview

Package platform is the entry point to launche the Polyglottis Platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(addr string, c *Configuration) error

Launch starts listening to addr and serving contents based on the configuration.

Types

type Configuration

type Configuration struct {
	Backend  *backend.Configuration
	Frontend frontend.Server
}

type MainServer

type MainServer struct {
	Router *mux.Router
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string) *MainServer

func (*MainServer) ListenAndServe

func (s *MainServer) ListenAndServe() error

func (*MainServer) RegisterStatic

func (s *MainServer) RegisterStatic(path string)

func (*MainServer) Subrouter

func (s *MainServer) Subrouter(pathPrefix string) *mux.Router

Directories

Path Synopsis
Package api contains the definition of all web services to extract data from the Polyglottis Platform.
Package api contains the definition of all web services to extract data from the Polyglottis Platform.
Package content contains the type definitions for contents on the platform.
Package content contains the type definitions for contents on the platform.
rpc
Package rpc provides the rpc content client used by the Polyglottis Application and a simple content server wrapper.
Package rpc provides the rpc content client used by the Polyglottis Application and a simple content server wrapper.
Package frontend defines the interface a frontend server should comply to.
Package frontend defines the interface a frontend server should comply to.
handle
Package handle contains frontend handler functions.
Package handle contains frontend handler functions.
router
Package router contains the route definitions for the frontend server.
Package router contains the route definitions for the frontend server.
rpc
Package rpc provides the rpc frontend client used by the Polyglottis Application and a simple frontend server wrapper.
Package rpc provides the rpc frontend client used by the Polyglottis Application and a simple frontend server wrapper.
Package language defines language codes, the language struct, and the language server interface.
Package language defines language codes, the language struct, and the language server interface.
rpc
Package rpc provides the rpc language client used by the Polyglottis Application and a simple language server wrapper.
Package rpc provides the rpc language client used by the Polyglottis Application and a simple language server wrapper.
main
Package server contains all server features which are common to frontend and api.
Package server contains all server features which are common to frontend and api.
Package user contains the type definitions for user accounts and the user server interface.
Package user contains the type definitions for user accounts and the user server interface.
password
Package password provides password hashing and password checks.
Package password provides password hashing and password checks.
rpc
Package rpc provides the rpc user client used by the Polyglottis Application and a simple user server wrapper.
Package rpc provides the rpc user client used by the Polyglottis Application and a simple user server wrapper.

Jump to

Keyboard shortcuts

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