integration

package
v0.0.0-...-f20e732 Latest Latest
Warning

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

Go to latest
Published: May 22, 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

Types

type Integration

type Integration interface {
	// extras are additional fields that are not part of the message
	SendNotification(ctx context.Context, message string, extras map[string]interface{}) error
	ValidateConfig(*validator.Validate) error
	IsValidCredential(ctx context.Context) (bool, error)
}

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