Documentation ¶
Overview ¶
Package weboptions provides Options for configuring a web server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalHostWithPort ¶
LocalHostWithPort returns a properly formatted localhost address with port.
Types ¶
type Options ¶
type Options struct { // Pprof turns on the pprof profiler accessible at /debug Pprof bool SharedDir string // SignalingAddress is where to listen to WebRTC call offers at. SignalingAddress string // SignalingDialOpts are the dial options to used for signaling. SignalingDialOpts []rpc.DialOption // FQDN is the FQDN of this host. It is assumed this FQDN is unique to // one robot. FQDN string // LocalFQDN is the local FQDN of this host used for UI links // and SDK connections. It is assumed this FQDN is unique to one // robot. LocalFQDN string // Debug turns on various debugging features. For example, the echo gRPC // service is added. Debug bool // WebRTC configures whether or not to instruct all clients to prefer to // WebRTC connections over direct gRPC connections. WebRTC bool // Network describes networking settings for the web server. Network config.NetworkConfig // Auth describes authentication and authorization settings for the web server. Auth config.AuthConfig // Managed signifies if this server is remotely managed (e.g. from some cloud service). Managed bool // Secure determines if sever communicates are secured or not. Secure bool // baked information when managed to make local UI simpler BakedAuthEntity string BakedAuthCreds rpc.Credentials WebRTCOnPeerAdded func(pc *webrtc.PeerConnection) WebRTCOnPeerRemoved func(pc *webrtc.PeerConnection) }
Options are used for configuring the web server.
func FromConfig ¶
FromConfig returns an Options populated by the config passed in.
Click to show internal directories.
Click to hide internal directories.