Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NewConfig (0.07 sec)

  1. internal/config/lambda/config.go

    // information about various lambda targets.
    type Config struct {
    	Webhook map[string]target.WebhookArgs `json:"webhook"`
    }
    
    const (
    	defaultTarget = "1"
    )
    
    // NewConfig - initialize lambda config.
    func NewConfig() Config {
    	// Make sure to initialize lambda targets
    	cfg := Config{
    		Webhook: make(map[string]target.WebhookArgs),
    	}
    	cfg.Webhook[defaultTarget] = target.WebhookArgs{}
    	return cfg
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. internal/logger/config.go

    	HTTP         map[string]http.Config  `json:"http"`
    	AuditWebhook map[string]http.Config  `json:"audit"`
    	AuditKafka   map[string]kafka.Config `json:"audit_kafka"`
    }
    
    // NewConfig - initialize new logger config.
    func NewConfig() Config {
    	cfg := Config{
    		// Console logging is on by default
    		Console: Console{
    			Enabled: true,
    		},
    		HTTP:         make(map[string]http.Config),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. internal/config/notify/config.go

    	Redis         map[string]target.RedisArgs         `json:"redis"`
    	Webhook       map[string]target.WebhookArgs       `json:"webhook"`
    }
    
    const (
    	defaultTarget = "1"
    )
    
    // NewConfig - initialize notification config.
    func NewConfig() Config {
    	// Make sure to initialize notification targets
    	cfg := Config{
    		NSQ:           make(map[string]target.NSQArgs),
    		AMQP:          make(map[string]target.AMQPArgs),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  4. internal/event/target/kafka.go

    }
    
    func (target *KafkaTarget) initKafka() error {
    	if os.Getenv("_MINIO_KAFKA_DEBUG") != "" {
    		sarama.DebugLogger = log.Default()
    	}
    
    	args := target.args
    
    	config := sarama.NewConfig()
    	if args.Version != "" {
    		kafkaVersion, err := sarama.ParseKafkaVersion(args.Version)
    		if err != nil {
    			target.loggerOnce(context.Background(), err, target.ID().String())
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. internal/logger/target/kafka/kafka.go

    	}
    	return err
    }
    
    // Init initialize kafka target
    func (h *Target) init() error {
    	if os.Getenv("_MINIO_KAFKA_DEBUG") != "" {
    		sarama.DebugLogger = log.Default()
    	}
    
    	sconfig := sarama.NewConfig()
    	if h.kconfig.Version != "" {
    		kafkaVersion, err := sarama.ParseKafkaVersion(h.kconfig.Version)
    		if err != nil {
    			return err
    		}
    		sconfig.Version = kafkaVersion
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. internal/event/target/nsq.go

    	}
    	return nil
    }
    
    func (target *NSQTarget) init() error {
    	return target.initOnce.Do(target.initNSQ)
    }
    
    func (target *NSQTarget) initNSQ() error {
    	args := target.args
    
    	config := nsq.NewConfig()
    	if args.TLS.Enable {
    		config.TlsV1 = true
    		config.TlsConfig = &tls.Config{
    			InsecureSkipVerify: args.TLS.SkipVerify,
    		}
    	}
    	target.config = config
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/tier.go

    	}
    
    	return pReader, opts, nil
    }
    
    // Reload updates config by reloading remote tier config from config store.
    func (config *TierConfigMgr) Reload(ctx context.Context, objAPI ObjectLayer) error {
    	newConfig, err := loadTierConfig(ctx, objAPI)
    
    	config.Lock()
    	defer config.Unlock()
    
    	switch err {
    	case nil:
    		break
    	case errConfigNotFound: // nothing to reload
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    							}
    							for offset < len(splitDataShards) {
    								newConfig := false
    								for shardIdx, shard := range splitFilled[:k] {
    									if shardConfig[shardIdx] != shard[offset] {
    										newConfig = true
    										break
    									}
    								}
    								if newConfig {
    									if offset > startOffset && reconstructAbleConfig {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top