backend

package
v1.6.42 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackEnd

func NewBackEnd(url *url.URL, alive bool) types.Instance

Types

type Backend

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

Backend holds the data about a server

func (*Backend) FailTime

func (b *Backend) FailTime() int

func (*Backend) IsAlive

func (b *Backend) IsAlive() (alive bool)

IsAlive returns true when backend is alive

func (*Backend) SetAlive

func (b *Backend) SetAlive(alive bool)

SetAlive for this backend

func (*Backend) URL

func (b *Backend) URL() *url.URL

Jump to

Keyboard shortcuts

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