worker

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 12 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
	Environment shared.Environment
	Worker      Worker
	Webrtc      webrtcConfig.Webrtc
}

func NewConfig added in v2.4.0

func NewConfig() (conf Config)

func (*Config) ParseFlags added in v2.4.0

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 added in v2.6.0

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

func (*Worker) GetAddr added in v2.6.0

func (w *Worker) GetAddr() string

GetAddr returns defined in the config server address.

func (*Worker) GetPingAddr added in v2.6.0

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

GetPingAddr returns exposed to clients server ping endpoint address.

Jump to

Keyboard shortcuts

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