worker

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Encoder   encoder.Encoder
	Emulator  emulator.Emulator
	Recording shared.Recording
	Storage   storage.Storage
	Worker    Worker
	Webrtc    webrtc.Webrtc
	Version   shared.Version
}

func NewConfig

func NewConfig() (conf Config)

func (*Config) ParseFlags

func (c *Config) ParseFlags()

ParseFlags updates config values from passed runtime flags. Define own flags with default value set to the current config param. Don't forget to call flag.Parse().

type Worker

type Worker struct {
	Debug      bool
	Monitoring monitoring.Config
	Network    struct {
		CoordinatorAddress string
		Endpoint           string
		PingEndpoint       string
		PublicAddress      string
		Secure             bool
		Zone               string
	}
	Server shared.Server
	Tag    string
}

func (*Worker) GetAddr

func (w *Worker) GetAddr() string

GetAddr returns defined in the config server address.

func (*Worker) GetPingAddr

func (w *Worker) GetPingAddr(address string) url.URL

GetPingAddr returns exposed to clients server ping endpoint address.

func (*Worker) GetPort

func (w *Worker) GetPort(address string) string

Jump to

Keyboard shortcuts

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