publisher

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionCreator

type ConnectionCreator func(endpoint string) (PublishingConnection, error)

type Job

type Job struct {
	PublishingEndpoint string

	BackendHost string
	BackendPort int

	AppDomain  string
	AppName    string
	StartRange int
	EndRange   int
}

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(job Job, publishDelay time.Duration) *Publisher

func (*Publisher) Finish

func (p *Publisher) Finish()

func (*Publisher) Initialize

func (p *Publisher) Initialize(c ConnectionCreator) error

func (*Publisher) PublishRouteRegistrations

func (p *Publisher) PublishRouteRegistrations() error

type PublishingConnection

type PublishingConnection interface {
	Publish(subj string, data []byte) error
	Close()
}

type RouteData

type RouteData struct {
	Host string   `json:"host"`
	Port int      `json:"port"`
	URIs []string `json:"uris"`
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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