definations

package
v0.0.0-...-7a3883e Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompareEquals        = CompareType(0)
	ConpareNotEquals     = CompareType(1)
	CompareLessThan      = CompareType(10)
	CompareLessEquals    = CompareType(11)
	CompareGreaterThan   = CompareType(12)
	CompareGreaterEquals = CompareType(13)
	CompareContains      = CompareType(21)
	CompareInArray       = CompareType(22)
	CompareNotInArray    = CompareType(23)
	CompareBetween       = CompareType(24)
	CompareNotBetween    = CompareType(25)
)

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareType

type CompareType int

CompareType type

type ComparisonObject

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

ComparisonObject struct

func NewComparisonObject

func NewComparisonObject() *ComparisonObject

NewComparisonObject new comparison

func (*ComparisonObject) And

func (c *ComparisonObject) And(compareType CompareType, field string, value interface{}) *ComparisonObject

And contion

func (*ComparisonObject) Evaluate

func (c *ComparisonObject) Evaluate(element interface{}) bool

Evaluate the comparison

func (*ComparisonObject) Or

func (c *ComparisonObject) Or(compareType CompareType, field string, value interface{}) *ComparisonObject

Or condition

type DBConnectorConfig

type DBConnectorConfig struct {
	Driver       string `yaml:"driver"`
	Address      string `yaml:"address"`
	Db           string `yaml:"db"`
	Mechanism    string `yaml:"mechanism"`
	TablePrefix  string `yaml:"tablePrefix"`
	SSHTunnelDSN string `yaml:"sshTunnel"`
}

DBConnectorConfig db connector configuration

type Proxies

type Proxies struct {
	HTTP  string `yaml:"http"`
	HTTPS string `yaml:"https"`
}

Proxies options about http proxy

func (*Proxies) FetchProxyURL

func (n *Proxies) FetchProxyURL(endpointURL string) string

FetchProxyURL fetch proxy url

func (*Proxies) GetProxyURL

func (n *Proxies) GetProxyURL() string

GetProxyURL fetch proxy url by any configured http or https

func (*Proxies) Valid

func (n *Proxies) Valid() bool

Valid check if proxies configuration is valid

type TLSOptions

type TLSOptions struct {
	Enabled      bool   `yaml:"enabled"`
	CertFile     string `yaml:"certFile"`
	KeyFile      string `yaml:"keyFile"`
	CaFile       string `yaml:"caFile"`
	SkipVerify   bool   `yaml:"skipVerify"`
	VerifyClient bool   `yaml:"verifyClient"`
}

TLSOptions options about TLS

Jump to

Keyboard shortcuts

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