Documentation ¶
Index ¶
- type Collection
- type Map
- func (c *Map) Add(key string, value string)
- func (c *Map) AddCS(key string, vKey string, vVal string)
- func (c *Map) AddUnique(key string, value string)
- func (c *Map) AddUniqueCS(key string, vKey string, vVal string)
- func (c *Map) Data() map[string][]string
- func (c *Map) FindAll() []types.MatchData
- func (c *Map) FindRegex(key *regexp.Regexp) []types.MatchData
- func (c *Map) FindString(key string) []types.MatchData
- func (c *Map) Get(key string) []string
- func (c *Map) Name() string
- func (c *Map) Remove(key string)
- func (c *Map) Reset()
- func (c *Map) Set(key string, values []string)
- func (c *Map) SetCS(key string, vKey string, values []string)
- func (c *Map) SetIndex(key string, index int, value string)
- func (c *Map) SetIndexCS(key string, index int, vKey string, value string)
- type Proxy
- func (c *Proxy) Data() map[string][]string
- func (c *Proxy) FindAll() []types.MatchData
- func (c *Proxy) FindRegex(key *regexp.Regexp) []types.MatchData
- func (c *Proxy) FindString(key string) []types.MatchData
- func (c *Proxy) Get(key string) []string
- func (c *Proxy) Name() string
- func (c *Proxy) Reset()
- type Simple
- func (c *Simple) FindAll() []types.MatchData
- func (c *Simple) FindRegex(key *regexp.Regexp) []types.MatchData
- func (c *Simple) FindString(key string) []types.MatchData
- func (c *Simple) Int() int
- func (c *Simple) Int64() int64
- func (c *Simple) Name() string
- func (c *Simple) Reset()
- func (c *Simple) Set(value string)
- func (c *Simple) String() string
- type SizeProxy
- type TranslationProxy
- func (c *TranslationProxy) Data() []string
- func (c *TranslationProxy) FindAll() []types.MatchData
- func (c *TranslationProxy) FindRegex(key *regexp.Regexp) []types.MatchData
- func (c *TranslationProxy) FindString(key string) []types.MatchData
- func (c *TranslationProxy) Get(index int) string
- func (c *TranslationProxy) Name() string
- func (c *TranslationProxy) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection interface { // FindRegex returns a slice of MatchData for the regex FindRegex(key *regexp.Regexp) []types.MatchData // FindString returns a slice of MatchData for the string FindString(key string) []types.MatchData // FindString returns a slice of MatchData for the string FindAll() []types.MatchData // Name returns the name for the current CollectionMap Name() string // Reset the current CollectionMap Reset() }
Collection are used to store VARIABLE data for transactions, this data structured is designed to store slices of data for keys Important: CollectionMaps ARE NOT concurrent safe
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map are used to store VARIABLE data for transactions, this data structured is designed to store slices of data for keys Important: CollectionMaps ARE NOT concurrent safe
func NewMap ¶
func NewMap(variable variables.RuleVariable) *Map
NewMap returns a collection of key->[]values
func (*Map) AddUniqueCS ¶
AddUniqueCS will add a value to a key if it is not already there with case sensitive vKey
func (*Map) FindString ¶
FindString returns a slice of MatchData for the string
func (*Map) Set ¶
Set will replace the key's value with this slice internally converts [] string to []types.AnchoredVar
func (*Map) SetCS ¶
SetCS will replace the key's value with this slice internally converts [] string to []types.AnchoredVar with case sensitive vKey
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy are used to store VARIABLE data for transactions, this data structured is designed to store slices of data for keys Important: CollectionProxys ARE NOT concurrent safe
func NewProxy ¶
func NewProxy(variable variables.RuleVariable, data ...*Map) *Proxy
NewProxy returns a Proxy collection that merges all collections
func (*Proxy) FindString ¶
FindString returns a slice of MatchData for the string
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple are used to store VARIABLE data for transactions, this data structured is designed to store slices of data for keys Important: CollectionSimples ARE NOT concurrent safe
func NewSimple ¶
func NewSimple(variable variables.RuleVariable) *Simple
NewSimple creates a new CollectionSimple
func (*Simple) FindString ¶
FindString returns a slice of MatchData for the string
type SizeProxy ¶
type SizeProxy struct {
// contains filtered or unexported fields
}
SizeProxy are used to connect the size of many collection map values and return the sum
func NewCollectionSizeProxy ¶
func NewCollectionSizeProxy(variable variables.RuleVariable, data ...*Map) *SizeProxy
NewCollectionSizeProxy returns a collection that only returns the total sum of all the collections values
func (*SizeProxy) FindString ¶
FindString returns a slice of MatchData for the string
type TranslationProxy ¶
type TranslationProxy struct {
// contains filtered or unexported fields
}
TranslationProxy are used to store VARIABLE data for transactions, this data structured is designed to store slices of data for keys Important: CollectionTranslationProxys ARE NOT concurrent safe
func NewTranslationProxy ¶
func NewTranslationProxy(variable variables.RuleVariable, data ...*Map) *TranslationProxy
NewTranslationProxy creates a translation proxy Translation proxies are used to merge variable keys from multiple collections
func (*TranslationProxy) Data ¶
func (c *TranslationProxy) Data() []string
Data returns the keys of all Proxy collections
func (*TranslationProxy) FindAll ¶
func (c *TranslationProxy) FindAll() []types.MatchData
FindAll returns all keys from Proxy Collections
func (*TranslationProxy) FindRegex ¶
func (c *TranslationProxy) FindRegex(key *regexp.Regexp) []types.MatchData
FindRegex returns a slice of MatchData for the regex
func (*TranslationProxy) FindString ¶
func (c *TranslationProxy) FindString(key string) []types.MatchData
FindString returns a slice of MatchData for the string
func (*TranslationProxy) Get ¶
func (c *TranslationProxy) Get(index int) string
Get the value for the index
func (*TranslationProxy) Name ¶
func (c *TranslationProxy) Name() string
Name returns the name for the current CollectionTranslationProxy
func (*TranslationProxy) Reset ¶
func (c *TranslationProxy) Reset()
Reset the current CollectionTranslationProxy