Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewConfig (0.17 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 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),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.8K 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),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.8K bytes
    - Viewed (0)
Back to top