Versions in this module Expand all Collapse all v2 v2.1.1 Jun 1, 2024 v2.1.0 May 19, 2024 Changes in this version type Discovery + Addr string v2.0.2 May 18, 2024 v2.0.1 Aug 23, 2023 v2.0.0 Aug 21, 2023 Changes in this version + func ConfigPath() string + func ParseSizeString(s string) (int64, error) + type BasicAuth struct + NoDialog bool + Password string + PasswordFile string + PasswordPrompt bool + UnauthorizedPage string + UnauthorizedStatus int + Username string + type CORS struct + AllowCredentials bool + AllowPrivateNetwork bool + AllowedHeaders []string + AllowedOrigins []string + MaxAge int + SuccessStatus int + type Discovery struct + Enabled bool + Host string + Insecure bool + Key string + KeyPath string + OnlyRedirect bool + PreferredURL string + Reports Reports + RequiredURL string + type HeaderFilter struct + Allow []string + Block []string + UseDefaults bool + type NATTraversal struct + P2P P2P + UPnP UPnP + func (c *NATTraversal) IsUsingUPnP() bool + func (c *NATTraversal) IsUsingWebRTC() bool + type Output struct + Format string + NoColor bool + QRCode bool + Quiet bool + type P2P struct + DiscoveryDir string + Enabled bool + ICEGatherTimeout time.Duration + Only bool + WebRTCConfiguration []byte + WebRTCConfigurationFile string + func (c *P2P) ParseConfig() (*webrtc.Configuration, error) + type Reports struct + Enabled bool + HeaderFilter HeaderFilter + type Root struct + BasicAuth BasicAuth + CORS CORS + Discovery Discovery + NATTraversal NATTraversal + Output Output + Server Server + Subcommands *Subcommands + func EmptyRoot() *Root + func (c *Root) Hydrate() error + func (c *Root) Init(cmd *cobra.Command) + func (c *Root) Validate() error + type Server struct + AllowBots bool + ExitOnFail bool + Host string + MaxReadSize string + Port int + TLSCert string + TLSKey string + Timeout time.Duration + type Subcommands struct + DiscoveryServer *discoveryserver.Configuration + Exec *exec.Configuration + P2P *p2p.Configuration + RProxy *rproxy.Configuration + Receive *receive.Configuration + Redirect *redirect.Configuration + Send *send.Configuration + type UPnP struct + Duration time.Duration + Enabled bool + ExternalPort int + Timeout time.Duration v2.0.0-beta3 Aug 2, 2023