integration

package
v0.0.0-...-dd46dfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMessagingFormat

func IsMessagingFormat(integrationType string) bool
func SupportsSummaryLink(integrationType string) bool

Types

type Integration

type Integration interface {
	// extras are additional fields that are not part of the message
	// if SendSummaryLink is true then message array is expected to be scan summay
	SendNotification(ctx context.Context, message []map[string]interface{}, extras map[string]interface{}) error
	ValidateConfig(*validator.Validate) error
	IsValidCredential(ctx context.Context) (bool, error)
	SendSummaryLink() bool
}

Integration is the interface for all integrations

func GetIntegration

func GetIntegration(ctx context.Context, integrationType string, b []byte) (Integration, error)

GetIntegration returns an integration object based on the integration type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL