Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WebSet = wire.NewSet( NewServer, NewTemplate, )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( config *ServerConfig, template *Template, controller *controller.Controller, ) *Server
type ServerConfig ¶
type ServerConfig struct { Port int `env:"PORT" envDefault:"8080"` Origin string `env:"ORIGIN,required"` }
func (ServerConfig) Secure ¶
func (s ServerConfig) Secure() bool
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
func NewTemplate(cfg *TemplateConfig) *Template
type TemplateConfig ¶
type TemplateConfig struct {
Origin string `env:"ORIGIN,required"`
}
Click to show internal directories.
Click to hide internal directories.