proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServices

func LoadServices() error

LoadServices gets services from the database and sets them to the services variable.

func StartServer

func StartServer(group *sync.WaitGroup)

StartServer launches the reverse proxy main http server.

Types

type MemoryCachedService

type MemoryCachedService struct {
	Service        *models.Service
	ExpirationTime time.Time
}

MemoryCachedService represents a service cached in hot memory with an expiration.

func (*MemoryCachedService) IsExpired

func (service *MemoryCachedService) IsExpired() bool

IsExpired returns true if the cache has expired, false otherwise.

Jump to

Keyboard shortcuts

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