Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewWebhookTarget (0.17 sec)

  1. internal/event/target/webhook.go

    	yes, err := target.isActive()
    	if err != nil {
    		return err
    	}
    	if !yes {
    		return store.ErrNotConnected
    	}
    
    	return nil
    }
    
    // NewWebhookTarget - creates new Webhook target.
    func NewWebhookTarget(ctx context.Context, id string, args WebhookArgs, loggerOnce logger.LogOnce, transport *http.Transport) (*WebhookTarget, error) {
    	ctx, cancel := context.WithCancel(ctx)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. internal/config/lambda/target/webhook.go

    	yes, err := target.isActive()
    	if err != nil {
    		return err
    	}
    	if !yes {
    		return errNotConnected
    	}
    
    	return nil
    }
    
    // NewWebhookTarget - creates new Webhook target.
    func NewWebhookTarget(ctx context.Context, id string, args WebhookArgs, loggerOnce logger.LogOnce, transport *http.Transport) (*WebhookTarget, error) {
    	ctx, cancel := context.WithCancel(ctx)
    
    	target := &WebhookTarget{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:39:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. internal/config/lambda/parse.go

    		if err != nil {
    			return nil, err
    		}
    		for id, args := range webhookTargets {
    			if !args.Enable {
    				continue
    			}
    			t, err := target.NewWebhookTarget(ctx, id, args, logOnceIf, transport)
    			if err != nil {
    				return nil, err
    			}
    			targets = append(targets, t)
    		}
    	}
    	return targets, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. internal/config/notify/parse.go

    		if err != nil {
    			return nil, err
    		}
    		for id, args := range webhookTargets {
    			if !args.Enable {
    				continue
    			}
    			t, err := target.NewWebhookTarget(ctx, id, args, logOnceIf, transport)
    			if err != nil {
    				return nil, err
    			}
    			targets = append(targets, t)
    		}
    	}
    	return targets, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
Back to top