Back to

Package messagebus

Latest Go to latest

The highest tagged major version is .

Published: Jul 1, 2020 | License: Apache-2.0 | Module:


type Message

type Message struct {
	URIs                []string          `json:"uris"`
	Host                string            `json:"host"`
	Port                *int              `json:"port,omitempty"`
	TLSPort             *int              `json:"tls_port,omitempty"`
	Tags                map[string]string `json:"tags"`
	RouteServiceUrl     string            `json:"route_service_url,omitempty"`
	PrivateInstanceId   string            `json:"private_instance_id"`
	ServerCertDomainSAN string            `json:"server_cert_domain_san,omitempty"`

type MessageBus

type MessageBus interface {
	Connect(servers []config.MessageBusServer, tlsConfig *tls.Config) error
	SendMessage(subject string, host string, route config.Route, privateInstanceId string) error

func NewMessageBus

func NewMessageBus(logger lager.Logger) MessageBus

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

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