backend

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALIVE_UP   = true
	ALIVE_DOWN = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ID    string
	Addr  *url.URL
	Alive bool
	// contains filtered or unexported fields
}

func NewDefaultBackend

func NewDefaultBackend(ID, addr string) (*Backend, error)

func (*Backend) IsAlive

func (b *Backend) IsAlive() bool

func (*Backend) Serve

func (b *Backend) Serve(rw http.ResponseWriter, req *http.Request)

func (*Backend) SetAlive

func (b *Backend) SetAlive(alive bool)

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

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