extensions

package
Version: v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelloServerPort     = uint32(1234)
	HelloServerHostname = "hello.global"
)
View Source
const ExtensionsServerPort = 2345

Variables

View Source
var (
	// This is the address from which pods can talk to our host machine
	DockerHostAddress = func() string {
		if runtime.GOOS == "darwin" {

			return "host.docker.internal"
		}

		ipAddr, err := exec.Command("bash", "-c", "ifconfig docker0 | grep 'inet' | cut -d: -f4 | awk '{print $2}' | head -n 1").CombinedOutput()
		if err != nil {
			log.Fatalf("%v", err)
		}
		return strings.TrimSpace(string(ipAddr))
	}()
)

Functions

func NewTestExtensionsServer

func NewTestExtensionsServer() *testExtensionsServer

func RunHelloServer

func RunHelloServer(helloMsg string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to