Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func ParseSizeString ¶
Types ¶
type BasicAuth ¶
type BasicAuth struct { Username string `mapstructure:"username" yaml:"username"` Password string `mapstructure:"password" yaml:"password"` PasswordFile string `mapstructure:"passwordFile" yaml:"passwordFile"` PasswordPrompt bool `mapstructure:"passwordPrompt" yaml:"passwordPrompt"` NoDialog bool `mapstructure:"noDialog" yaml:"noDialog"` }
type CORS ¶
type CORS struct { AllowedOrigins []string `mapstructure:"allowedOrigins" yaml:"allowedOrigins"` AllowedHeaders []string `mapstructure:"allowedHeaders" yaml:"allowedHeaders"` MaxAge int `mapstructure:"maxAge" yaml:"maxAge"` AllowCredentials bool `mapstructure:"allowCredentials" yaml:"allowCredentials"` AllowPrivateNetwork bool `mapstructure:"allowPrivateNetwork" yaml:"allowPrivateNetwork"` SuccessStatus int `mapstructure:"successStatus" yaml:"successStatus"` }
type Discovery ¶
type Discovery struct { Enabled bool `mapstructure:"enabled" yaml:"enabled"` Addr string `mapstructure:"addr" yaml:"addr"` Key string `mapstructure:"key" yaml:"key" json:"-"` KeyPath string `mapstructure:"keyPath" yaml:"keyPath"` Insecure bool `mapstructure:"insecure" yaml:"insecure"` PreferredURL string `mapstructure:"preferredURL" yaml:"preferredURL"` RequiredURL string `mapstructure:"requiredURL" yaml:"requiredURL"` OnlyRedirect bool `mapstructure:"onlyRedirect" yaml:"onlyRedirect"` Reports Reports `mapstructure:"reports" yaml:"reports"` }
type HeaderFilter ¶
type NATTraversal ¶
type NATTraversal struct { P2P P2P `mapstructure:"p2p" yaml:"p2p"` UPnP UPnP `mapstructure:"upnp" yaml:"upnp"` }
func (*NATTraversal) IsUsingUPnP ¶
func (c *NATTraversal) IsUsingUPnP() bool
func (*NATTraversal) IsUsingWebRTC ¶
func (c *NATTraversal) IsUsingWebRTC() bool
type P2P ¶
type P2P struct { Enabled bool `mapstructure:"enabled" yaml:"enabled"` Only bool `mapstructure:"only" yaml:"only"` WebRTCConfigurationFile string `mapstructure:"webrtcConfigurationFile" yaml:"webrtcConfigurationFile"` WebRTCConfiguration []byte `json:"webrtcConfiguration" yaml:"webrtcConfiguration"` DiscoveryDir string `mapstructure:"discoveryDir" yaml:"discoveryDir"` ICEGatherTimeout time.Duration `mapstructure:"iceGatherTimeout" yaml:"iceGatherTimeout"` }
func (*P2P) ParseConfig ¶
func (c *P2P) ParseConfig() (*webrtc.Configuration, error)
type Reports ¶
type Reports struct { Enabled bool `mapstructure:"enabled" yaml:"enabled"` HeaderFilter HeaderFilter `mapstructure:"headerFilter" yaml:"headerFilter"` }
type Root ¶
type Root struct { Output Output `mapstructure:"output" yaml:"output"` Server Server `mapstructure:"server" yaml:"server"` BasicAuth BasicAuth `mapstructure:"basicAuth" yaml:"basicAuth"` CORS CORS `mapstructure:"cors" yaml:"cors"` NATTraversal NATTraversal `mapstructure:"natTraversal" yaml:"natTraversal"` Subcommands *Subcommands `mapstructure:"cmd" yaml:"cmd"` Discovery Discovery `mapstructure:"discovery" yaml:"discovery"` }
type Server ¶
type Server struct { Host string `mapstructure:"host" yaml:"host"` Port int `mapstructure:"port" yaml:"port"` Timeout time.Duration `mapstructure:"timeout" yaml:"timeout"` AllowBots bool `mapstructure:"allowBots" yaml:"allowBots"` MaxReadSize string `mapstructure:"maxReadSize" yaml:"maxReadSize"` ExitOnFail bool `mapstructure:"exitOnFail" yaml:"exitOnFail"` TLSCert string `mapstructure:"tlsCert" yaml:"tlsCert"` TLSKey string `mapstructure:"tlsKey" yaml:"tlsKey"` }
type Subcommands ¶
type Subcommands struct { Receive *receive.Configuration `mapstructure:"receive" yaml:"receive"` Send *send.Configuration `mapstructure:"send" yaml:"send"` Exec *exec.Configuration `mapstructure:"exec" yaml:"exec"` Redirect *redirect.Configuration `mapstructure:"redirect" yaml:"redirect"` RProxy *rproxy.Configuration `mapstructure:"rproxy" yaml:"rproxy"` P2P *p2p.Configuration `mapstructure:"p2p" yaml:"p2p"` DiscoveryServer *discoveryserver.Configuration `mapstructure:"discoveryServer" yaml:"discoveryServer"` }
Click to show internal directories.
Click to hide internal directories.