Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
BindAddr string `desc:"http address for binding api server"`
Host string `desc:"host for website, required for building urls"`
Admins []string `desc:"email list of users with admin permissions"`
ResetPasswordSecret string `flag:"-" desc:"secret required for reset token generation"`
ResetPasswordDuration int `desc:"lifetime for reset token in seconds"`
SystemEmail string `desc:"for sending system emails, like password reseting"`
ContactEmail string `desc:"for show in templates, like contact with us"`
Raven string `desc:"sentry addr for frontend logging"`
GA string `desc:"google analytics id"`
Signup Signup
Cookie Cookie
}
type Cookie ¶
type Cookie struct {
Name string `desc:"name for secure cookie"`
KeyPairs []string `desc:"key pairs for cookie"` // read more http://www.gorillatoolkit.org/pkg/securecookie
Secure bool `desc:"set cookie only for https"`
}
type Dispatcher ¶
type Dispatcher struct {
Debug bool `flag:"-"`
Frontend Frontend
Agent InternalAgent
Worker InternalWorker
Swagger Swagger
Mongo Mongo
Email Email
Api Api
// Log Log
Template Template
}
func NewDispatcher ¶
func NewDispatcher() *Dispatcher
type InternalAgent ¶
type InternalWorker ¶
type Mongo ¶
type Mongo struct {
// The seed servers must be provided in the following format:
// [mongodb://][user:pass@]host1[:port1][,host2[:port2],...][/database][?options].
// Read more: http://docs.mongodb.org/manual/reference/connection-string/
Addr string `desc:"[mongodb://][user:pass@]host1[:port1][,host2[:port2],...][/database][?options]"`
Database string `desc:"database name"`
// to remove text search index in mongodb, you must do it manually
TextSearchEnable bool `desc:"enable search with mongo test search index"`
}
Click to show internal directories.
Click to hide internal directories.