Documentation ¶
Overview ¶
Package frontend defines the interface a frontend server should comply to.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Locale string Vars map[string]string Query url.Values Form url.Values Url string User user.Name Protocol string Host string Email string // for password reset Defaults url.Values // default form values Errors ErrorMap // errors on form submit }
func (*Context) IsFocusOnA ¶
func (*Context) ProtocolAndHost ¶
type FlavorTriple ¶
func (*FlavorTriple) Language ¶
func (t *FlavorTriple) Language() language.Code
type Server ¶
type Server interface { SetLanguageList([]language.Code) error Home(context *Context) ([]byte, error) Error(context *Context) ([]byte, error) NotFound(context *Context) ([]byte, error) Flavor(context *Context, e *content.Extract, a, b *FlavorTriple) ([]byte, error) NewExtract(context *Context) ([]byte, error) NewFlavor(context *Context, e *content.Extract) ([]byte, error) EditText(context *Context, e *content.Extract, a, b *content.Flavor) ([]byte, error) SignUp(context *Context) ([]byte, error) SignIn(context *Context) ([]byte, error) ForgotPassword(context *Context) ([]byte, error) PasswordSent(context *Context) ([]byte, error) ResetPassword(context *Context) ([]byte, error) PasswordResetEmail(c *Context, a *user.Account, token string) ([]byte, error) }
Server is the interface a frontend server should comply to.
Directories ¶
Path | Synopsis |
---|---|
Package handle contains frontend handler functions.
|
Package handle contains frontend handler functions. |
Package router contains the route definitions for the frontend server.
|
Package router contains the route definitions for the frontend server. |
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. |
Click to show internal directories.
Click to hide internal directories.