router

package
v0.0.0-...-7b2e207 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouterDomain = util.Env("ROUTER_DOMAIN", "")

RouterDomain is the router's domain

Functions

This section is empty.

Types

type Helper

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

Helper defines a structure for hooking up to the reverse proxy tool within the cluster. Current implementation is designed to add frontend and backend entries in consul which is a traefik backend

func NewHelper

func NewHelper(l *logging.Logger, httpServerAddr string) (*Helper, error)

NewHelper creates a new router helper object. Returns error if unable to connector to consul

func (*Helper) AddBackend

func (h *Helper) AddBackend(backendName, serverName string) error

AddBackend adds the connector's http server as a backend server.

func (*Helper) AddFrontend

func (h *Helper) AddFrontend(name string) error

AddFrontend adds a frontend to receive traffic from public internet

Jump to

Keyboard shortcuts

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