integrations

package module
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationGeneric    IntegrationType = 0
	IntegrationMattermost IntegrationType = 1
	IntegrationSlack      IntegrationType = 2
	IntegrationNtfy       IntegrationType = 3
	IntegrationTeams      IntegrationType = 4

	MinTypeID int64 = int64(IntegrationGeneric)
	MaxTypeID int64 = int64(IntegrationTeams)

	EventFormFinished EventType = "form.finished"
)

Variables

This section is empty.

Functions

func NewIntegration added in v0.1.8

func NewIntegration() *adapterService

Types

type EventType

type EventType string

type InputChoiceNode added in v0.2.5

type InputChoiceNode struct {
	Elements []struct {
		Label       string `json:"label"`
		AnswerShort string `json:"answerShort"`
		AnswerLong  string `json:"answerLong"`
	} `json:"elements"`
}

type InputContactNode added in v0.2.1

type InputContactNode struct {
	Firstname string `json:"firstname"`
	Lastname  string `json:"lastname"`
	Email     string `json:"email"`
	Company   string `json:"company"`
	Phone     string `json:"phone"`
	Details   string `json:"details"`
}

type InputFormFinished added in v0.2.1

type InputFormFinished struct {
	LinkText        string
	LinkUrl         string
	Title           string
	FormTranslation string
	Nodes           []InputFormFinishedNode
	Contact         *InputContactNode
}

type InputFormFinishedNode added in v0.2.1

type InputFormFinishedNode struct {
	Relation        int64
	NodeType        int64
	NodeTranslation string
	ContactNode     InputContactNode
	SelectNode      InputSelectNode
	RatingNode      InputRatingNode
	ChoiceNode      InputChoiceNode
}

type InputRatingNode added in v0.2.1

type InputRatingNode struct {
	Label    string `json:"label"`
	Elements []struct {
		Label string `json:"label"`
		Value int64  `json:"value"`
	} `json:"elements"`
}

type InputSelectNode added in v0.2.1

type InputSelectNode struct {
	Label    string   `json:"label"`
	Selected []string `json:"selected"`
}

type IntegrationDetailMap added in v0.1.8

type IntegrationDetailMap map[IntegrationType]adapterDetail

type IntegrationInterface added in v0.1.8

type IntegrationInterface interface {
	MapWebhook(input interface{}, adapterType IntegrationType, eventType EventType) (*Webhook, error)
	GetIntegrationDetails() IntegrationDetailMap
}

type IntegrationType added in v0.1.8

type IntegrationType int64

type Webhook added in v0.2.0

type Webhook struct {
	Data    interface{}
	Headers map[string][]string
}

Jump to

Keyboard shortcuts

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