static

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package static contains static information for the locate service.

Index

Constants

View Source
const (
	IssuerLocate      = "locate"
	AudienceLocate    = "locate"
	IssuerMonitoring  = "monitoring"
	SubjectMonitoring = "monitoring"
)

Constants used by the locate service, clients, and target servers accepting access tokens issued by the locate service.

Variables

View Source
var Configs = map[string]Ports{
	"ndt/ndt7": {
		URL("ws", "", "/ndt/v7/upload"),
		URL("ws", "", "/ndt/v7/download"),
		URL("wss", "", "/ndt/v7/upload"),
		URL("wss", "", "/ndt/v7/download"),
	},
	"ndt/ndt5": {

		URL("ws", ":3001", "/ndt_protocol"),
		URL("wss", ":3010", "/ndt_protocol"),
	},
	"wehe/replay": {
		URL("https", "", "/v0/allow"),
	},
}

Configs is a temporary, static mapping of service names and their set of associated ports. Ultimately, this will be discovered dynamically as service heartbeats register with the locate service.

View Source
var LegacyServices = map[string]string{
	"ndt/ndt5": "ndt_ssl",
	"ndt/ndt7": "ndt7",
}

LegacyServices associates legacy mlab-ns experiment target names with their v2 equivalent.

Functions

func URL

func URL(scheme, port, path string) url.URL

URL creates inline url.URLs.

Types

type Ports

type Ports []url.URL

Ports maps names to URLs.

Jump to

Keyboard shortcuts

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