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 // StaticHost is a url to use for static assets, like app.viam.com StaticHost 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 // DisallowWebRTC controls whether only an http grpc server is spun up, or if we'll also start // WebRTC answering to create PeerConnections. DisallowWebRTC bool // PreferWebRTC configures whether or not to instruct all clients to prefer to // PreferWebRTC connections over direct gRPC connections. PreferWebRTC 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) DisableMulticastDNS bool }
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.