Documentation ¶
Overview ¶
Package web provides gRPC/REST/GUI APIs to control and monitor a robot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures how we set up the web service. Cribbed from https://github.com/grpc/grpc-go/blob/aff571cc86e6e7e740130dbbb32a9741558db805/dialoptions.go#L41
func WithStreamConfig ¶
func WithStreamConfig(config gostream.StreamConfig) Option
WithStreamConfig returns an Option which sets the streamConfig used to enable audio/video streaming over WebRTC.
type Service ¶
type Service interface { // Start starts the web server Start(context.Context, weboptions.Options) error // Close closes the web server Close() error }
A Service controls the web server for a robot.
type StreamServer ¶
type StreamServer struct { // Server serves streams Server gostream.StreamServer // HasStreams is true if service has streams that require a WebRTC connection. HasStreams bool }
StreamServer manages streams and displays.
Directories ¶
Path | Synopsis |
---|---|
Package weboptions provides Options for configuring a web server
|
Package weboptions provides Options for configuring a web server |
Package webstream provides controls for streaming from the web server.
|
Package webstream provides controls for streaming from the web server. |
Click to show internal directories.
Click to hide internal directories.