dispatcher

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher redirect clients to it's peers.

func New

func New(
	ctx context.Context,
	log *logger.Logger,
	jwtSecret string,
	peerServiceName string,
	consulURL string,
	buffer int,
) *Dispatcher

New is a discpatcher constructor.

func (*Dispatcher) Start

func (d *Dispatcher) Start(ctx context.Context, port string, staticPath string) error

Start servers the dispatcher.

Directories

Path Synopsis
jwt

Jump to

Keyboard shortcuts

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