config

package
v3.1.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldEnableExpressionRoutes

func ShouldEnableExpressionRoutes(rf RouterFlavor) bool

Types

type DBMode

type DBMode string
const (
	DBModeOff      DBMode = "off"
	DBModePostgres DBMode = "postgres"
)

func NewDBMode

func NewDBMode(mode string) (DBMode, error)

func (DBMode) IsDBBacked

func (m DBMode) IsDBBacked() bool

IsDBBacked returns true if the gateway is DB backed. reverse of IsDBLessMode for readability.

func (DBMode) IsDBLessMode

func (m DBMode) IsDBLessMode() bool

IsDBLessMode can be used to detect the proxy mode (db or dbless).

type RouterFlavor

type RouterFlavor string
const (
	RouterFlavorTraditional           RouterFlavor = "traditional"
	RouterFlavorTraditionalCompatible RouterFlavor = "traditional_compatible"
	RouterFlavorExpressions           RouterFlavor = "expressions"
)

Jump to

Keyboard shortcuts

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