Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for custom (0.14 sec)

  1. internal/event/config.go

    type FilterRule struct {
    	Name  string `xml:"Name"`
    	Value string `xml:"Value"`
    }
    
    func (filter FilterRule) isEmpty() bool {
    	return filter.Name == "" && filter.Value == ""
    }
    
    // MarshalXML implements a custom marshaller to support `omitempty` feature.
    func (filter FilterRule) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if filter.isEmpty() {
    		return nil
    	}
    	type filterRuleWrapper FilterRule
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  2. internal/config/config.go

    // 2. the value of the parameter in the config store if set,
    // 3. the default value,
    //
    // This function only works for a subset of sub-systems, others return
    // `ValueSourceAbsent`. FIXME: some parameters have custom environment
    // variables for which support needs to be added.
    //
    // When redactSecrets is true, the returned value is empty if the configuration
    // parameter is a secret, and the returned isRedacted flag is set.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top