Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
FullMatchRules []ConfigRuleFullMatch `mapstructure:"FullMatchRules"`
}
type ConfigRuleFullMatch ¶
type Translator ¶
type TranslatorFullMatchRule ¶
type TranslatorFullMatchRule struct { // If null match any context ContextName *string // If null match any data FullMatchString string NewString string }
func NewTranslatorFullMatchRule ¶
func NewTranslatorFullMatchRule( contextName *string, fullMatchString string, newString string, ) *TranslatorFullMatchRule
type TranslatorImpl ¶
type TranslatorImpl struct { FullMatchRules []TranslatorFullMatchRule // contains filtered or unexported fields }
func NewTranslatorImpl ¶
func NewTranslatorImpl(logger *log.Logger) *TranslatorImpl
func (*TranslatorImpl) AddConfigRules ¶
func (t *TranslatorImpl) AddConfigRules(cfg Config)
func (*TranslatorImpl) AddRule ¶
func (t *TranslatorImpl) AddRule(rule TranslatorFullMatchRule)
Click to show internal directories.
Click to hide internal directories.