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 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 ¶
Proxies options about http proxy
func (*Proxies) FetchProxyURL ¶
FetchProxyURL fetch proxy url
func (*Proxies) GetProxyURL ¶
GetProxyURL fetch proxy url by any configured http or https
Click to show internal directories.
Click to hide internal directories.