Versions in this module Expand all Collapse all v0 v0.4.4 Apr 29, 2022 v0.4.3 Apr 29, 2022 v0.4.2 Apr 29, 2022 Changes in this version + func AttachWatcher(w *watcher.Watcher, fn func()) + func InitializeWatcher(pathToWatch string) (*watcher.Watcher, error) + type Config struct + CORS ConfigCORS + Host string + ImpostersPath string + Port int + Proxy ConfigProxy + Secure bool + Watcher bool + func NewConfig(impostersPath, host string, port int, secure bool, opts ...ConfigOpt) (Config, error) + type ConfigCORS struct + AllowCredentials bool + ExposedHeaders []string + Headers []string + Methods []string + Origins []string + type ConfigOpt func(cfg *Config) error + func WithConfigFile(cfgPath string) ConfigOpt + func WithProxyConfiguration(proxyMode, proxyURL string) ConfigOpt + func WithWatcherConfiguration(watcher bool) ConfigOpt + type ConfigProxy struct + Mode ProxyMode + URL string + type ProxyMode uint8 + const ProxyAll + const ProxyMissing + const ProxyNone + func StringToProxyMode(t string) (ProxyMode, error) + func (p *ProxyMode) UnmarshalYAML(unmarshal func(interface{}) error) error + func (p ProxyMode) String() string