routerregistrar

package
v0.0.0-...-0848747 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2015 License: Apache-2.0, BSD-3-Clause, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RouterGreetMessageSubject = "router.greet"
View Source
const RouterRegisterMessageSubject = "router.register"
View Source
const RouterStartMessageSubject = "router.start"
View Source
const RouterUnregisterMessageSubject = "router.unregister"

Variables

This section is empty.

Functions

func NewRouterRegistrar

func NewRouterRegistrar(mBusClient yagnats.NATSConn, logger *gosteno.Logger) *registrar

Types

type RouterMessage

type RouterMessage struct {
	Host string   `json:"host"`
	Port uint32   `json:"port"`
	Uris []string `json:"uris"`
}

type RouterResponse

type RouterResponse struct {
	RegisterInterval time.Duration `json:"minimumRegisterIntervalInSeconds"`
}

Jump to

Keyboard shortcuts

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