proxy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	context.Context
	zerolog.Logger
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(config *config.Config) *Proxy

func (*Proxy) GetCache

func (p *Proxy) GetCache() *cache.Cache[string]

func (*Proxy) Listen

func (p *Proxy) Listen()

func (*Proxy) MonitorMeilisearch added in v0.2.0

func (p *Proxy) MonitorMeilisearch()

func (*Proxy) PurgeCache

func (p *Proxy) PurgeCache(index string) error

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProxyHealth added in v0.2.0

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

func (*ProxyHealth) Fail added in v0.2.0

func (p *ProxyHealth) Fail()

func (*ProxyHealth) IsHealthy added in v0.2.0

func (p *ProxyHealth) IsHealthy() bool

func (*ProxyHealth) Reset added in v0.2.0

func (p *ProxyHealth) Reset()

func (*ProxyHealth) Success added in v0.2.0

func (p *ProxyHealth) Success()

Jump to

Keyboard shortcuts

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