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 ¶
func NewServer ¶
func NewServer(addr string) *MainServer
func (*MainServer) ListenAndServe ¶
func (s *MainServer) ListenAndServe() error
func (*MainServer) RegisterStatic ¶
func (s *MainServer) RegisterStatic(path string)
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. |
Click to show internal directories.
Click to hide internal directories.