Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFlags ¶
ConfigFlags helps configure cobra and viper flags.
func HTTPServerConfigFlags ¶
HTTPServerConfigFlags helps configure cobra and viper flags.
Types ¶
type Config ¶
type Config struct { HTTP HTTPServerConfig `mapstructure:"http"` Runtime *runtime.Config `mapstructure:"runtime"` MTurkConfig *mturk.Config `mapstructure:"mturk"` Admins []admin.User `mapstructure:"admins"` SecretKey string `mapstructure:"secret"` DevMode bool `mapstructure:"dev"` Store *storage.Config `mapstructure:"store"` Metrics *metrics.Config `mapstructure:"metrics"` Logger *log.Config `mapstructure:"log"` }
Config is `tawon agent` command line configuration
type HTTPServerConfig ¶
type HTTPServerConfig struct { Addr string `mapstructure:"addr"` RootURL string `mapstructure:"rooturl"` HTTPS bool `mapstructure:"https"` AutoTLS bool `mapstructure:"autotls"` Debug bool `mapstructure:"debug"` }
HTTPServerConfig is `tawon agent` command line configuration
func (*HTTPServerConfig) Validate ¶
func (c *HTTPServerConfig) Validate() error
Validate configuration is ok
type SPABox ¶
type SPABox struct {
// contains filtered or unexported fields
}
SPABox implements http.FileSystem which allows the use of Box with a http.FileServer.
e.g.: http.Handle("/", http.FileServer(rice.MustFindBox("http-files").HTTPBox()))
func MakeSPABox ¶
MakeSPABox creates a new SPABox from an existing Box
Click to show internal directories.
Click to hide internal directories.