server

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2022 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package server implements the entry point for running a robot web server.

Package server implements the entry point for running a robot web server.

Package server implements the entry point for running a robot web server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, args []string, logger golog.Logger) (err error)

RunServer is an entry point to starting the web server that can be called by main in a code sample or otherwise be used to initialize the server.

Types

type Arguments

type Arguments struct {
	AllowInsecureCreds bool   `flag:"allow-insecure-creds,usage=allow connections to send credentials over plaintext"`
	ConfigFile         string `flag:"config,usage=robot config file"`
	CPUProfile         string `flag:"cpuprofile,usage=write cpu profile to file"`
	Debug              bool   `flag:"debug"`
	SharedDir          string `flag:"shareddir,usage=web resource directory"`
	Version            bool   `flag:"version,usage=print version"`
	WebProfile         bool   `flag:"webprofile,usage=include profiler in http server"`
	WebRTC             bool   `flag:"webrtc,usage=force webrtc connections instead of direct"`
}

Arguments for the command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL