proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheStatusStrings

func CacheStatusStrings() []string

CacheStatusStrings returns a slice of all String values of the enum

func Proxy

func Proxy(conf *config.Config, cache *redis.Client, host string) http.HandlerFunc

Types

type CacheStatus

type CacheStatus uint8
const (
	CacheMiss CacheStatus = iota
	CacheHit
	CacheBypass
)

func CacheStatusString

func CacheStatusString(s string) (CacheStatus, error)

CacheStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func CacheStatusValues

func CacheStatusValues() []CacheStatus

CacheStatusValues returns all values of the enum

func (CacheStatus) IsACacheStatus

func (i CacheStatus) IsACacheStatus() bool

IsACacheStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (CacheStatus) String

func (i CacheStatus) String() string

Jump to

Keyboard shortcuts

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