Documentation ¶
Index ¶
- func ConfigLoad(configFile string, cfg *Config) (err error)
- type Config
- type HttpEmailBridge
- func (o *HttpEmailBridge) FaviconHandler(w http.ResponseWriter, r *http.Request)
- func (o *HttpEmailBridge) GenerateEmailCode(w http.ResponseWriter, r *http.Request)
- func (o *HttpEmailBridge) SendEmail(w http.ResponseWriter, r *http.Request)
- func (o *HttpEmailBridge) SendEmailByCode(w http.ResponseWriter, r *http.Request)
- func (o HttpEmailBridge) WireRoutes(serveMux *http.ServeMux, routes *Routes)
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigLoad ¶
Types ¶
type Config ¶
type Config struct { Server string `yaml:"server", envconfig:"SERVER"` Port int `yaml:"port", envconfig:"PORT"` CORS string `yaml:"cors", envconfig:"CORS"` StaticFolder string `yaml:"staticFolder", envconfig:"STATIC_FOLDER"` EncryptPassphrase string `yaml:"encryptPassphrase", envconfig:"ENCRYPT_PASSPHRASE"` EngineConfig email.EngineConfig `yaml:"engineConfig"` Routes Routes `yaml:"routes"` }
func BuildDefault ¶
func BuildDefault() (ret *Config)
func (*Config) WriteConfig ¶
type HttpEmailBridge ¶
type HttpEmailBridge struct { *email.Engine *encrypt.Encryptor // contains filtered or unexported fields }
func NewEmailBridge ¶
func NewEmailBridge(config *Config, serveMux *http.ServeMux) (ret *HttpEmailBridge, err error)
func (*HttpEmailBridge) FaviconHandler ¶
func (o *HttpEmailBridge) FaviconHandler(w http.ResponseWriter, r *http.Request)
func (*HttpEmailBridge) GenerateEmailCode ¶
func (o *HttpEmailBridge) GenerateEmailCode(w http.ResponseWriter, r *http.Request)
func (*HttpEmailBridge) SendEmail ¶
func (o *HttpEmailBridge) SendEmail(w http.ResponseWriter, r *http.Request)
func (*HttpEmailBridge) SendEmailByCode ¶
func (o *HttpEmailBridge) SendEmailByCode(w http.ResponseWriter, r *http.Request)
func (HttpEmailBridge) WireRoutes ¶
func (o HttpEmailBridge) WireRoutes(serveMux *http.ServeMux, routes *Routes)
Click to show internal directories.
Click to hide internal directories.