definations

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 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 added in v0.2.2

type CompareType int

CompareType type

type ComparisonObject added in v0.2.2

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

ComparisonObject struct

func NewComparisonObject added in v0.2.2

func NewComparisonObject() *ComparisonObject

NewComparisonObject new comparison

func (*ComparisonObject) And added in v0.2.2

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

And contion

func (*ComparisonObject) Evaluate added in v0.2.2

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

Evaluate the comparison

func (*ComparisonObject) Or added in v0.2.2

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 added in v0.2.6

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