sds

package
v0.0.0-...-1ccba7b Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

Worker for SDS (Service Discovery Service)

func NewWorker

func NewWorker(client *api.Client, serviceCh chan map[string][]string) *Worker

NewWorker will return the struct for a SDS worker

func (*Worker) Response

func (w *Worker) Response(service string) (value interface{}, ok bool)

Response will return the pre-computed SDS response for a specific service

func (*Worker) Start

func (w *Worker) Start()

Start will start the SDS worker, listening for service channel changes and pre-build SDS HTTP responses

func (*Worker) Stop

func (w *Worker) Stop()

Stop the CDS worker

Jump to

Keyboard shortcuts

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