frontend

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package frontend contains the logic for running a network frontend that proxies connections to a backend pool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildID

func BuildID() string

BuildID returns a string that will be injected during the link phase.

Types

type Frontend

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

A Frontend is intended to be a durable instance which is reconfigured as the need arises.

func (*Frontend) Ensure

func (f *Frontend) Ensure(ctx context.Context, cfg *config.Config) error

Ensure will start/stop/continue the server loops defined in the configuration.

func (*Frontend) MarshalYAML added in v0.1.2

func (f *Frontend) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler and provides diagnostic information.

func (*Frontend) Wait

func (f *Frontend) Wait()

Wait for all active connections to drain.

Directories

Path Synopsis
Package tcp implements a TCP proxy service.
Package tcp implements a TCP proxy service.

Jump to

Keyboard shortcuts

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