Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NamespaceFormat (6.05 sec)

  1. internal/event/target/postgresql.go

    		return fmt.Errorf("empty table name")
    	}
    	if err := validatePsqlTableName(p.Table); err != nil {
    		return err
    	}
    
    	if p.Format != "" {
    		f := strings.ToLower(p.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return fmt.Errorf("unrecognized format value")
    		}
    	}
    
    	if p.ConnectionString != "" {
    		// No pq API doesn't help to validate connection string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/event/target/redis.go

    	EventTime string
    }
    
    // Validate RedisArgs fields
    func (r RedisArgs) Validate() error {
    	if !r.Enable {
    		return nil
    	}
    
    	if r.Format != "" {
    		f := strings.ToLower(r.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return fmt.Errorf("unrecognized format")
    		}
    	}
    
    	if r.Key == "" {
    		return fmt.Errorf("empty key")
    	}
    
    	if r.QueueDir != "" {
    		if !filepath.IsAbs(r.QueueDir) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top