connection

package
v0.0.0-...-37f65c1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Shut     bool
	Messages chan Message
	Backend  string
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(proxy *httputil.ReverseProxy, backend string, startup *sync.WaitGroup) *Connection

func (*Connection) Get

func (c *Connection) Get() (*httputil.ReverseProxy, error)

func (*Connection) Shutdown

func (c *Connection) Shutdown()

type Message

type Message struct {
	Health   bool
	Backend  string
	Proxy    *httputil.ReverseProxy
	Ack      *sync.WaitGroup
	Shutdown bool
}

Jump to

Keyboard shortcuts

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