integrationService

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationManager

type IntegrationManager struct {
	Store      integrationStore.IntegrationStore
	RedisStore redisStore.RedisStore
	OauthStore oauthStore.OauthStore
}

func (*IntegrationManager) AddIntegration

func (manager *IntegrationManager) AddIntegration(accountId string, integration models.Integration) error

func (*IntegrationManager) DeleteIntegration

func (manager *IntegrationManager) DeleteIntegration(accountId string, integrationName string) (err error)

func (*IntegrationManager) GetAllIntegrations

func (manager *IntegrationManager) GetAllIntegrations(accountId, projectName string) ([]models.Integration, error)

func (*IntegrationManager) GetAllIntegrationsForAccountByType

func (manager *IntegrationManager) GetAllIntegrationsForAccountByType(accountId, projectName string, integrationTypes []string) ([]models.Integration, error)

func (*IntegrationManager) GetConnectedAccount

func (manager *IntegrationManager) GetConnectedAccount(accountId, integrationName string) (map[string]interface{}, error)

func (*IntegrationManager) GetIntegrationByName

func (manager *IntegrationManager) GetIntegrationByName(accountId, name string) (models.Integration, error)

func (*IntegrationManager) GetIntegrationFields

func (manager *IntegrationManager) GetIntegrationFields(name string) (models.IntegrationDefinition, error)

func (*IntegrationManager) GetIntegrationForThirdPartyAccount

func (manager *IntegrationManager) GetIntegrationForThirdPartyAccount(accountId, tpAccountId, integType string) (models.Integration, error)

func (*IntegrationManager) GetIntegrationTypes

func (manager *IntegrationManager) GetIntegrationTypes() ([]models.IntegrationDefinition, error)

func (*IntegrationManager) SetRedisPair

func (manager *IntegrationManager) SetRedisPair(key, value string, ttl time.Duration) (err error)

func (*IntegrationManager) UpdateIntegration

func (manager *IntegrationManager) UpdateIntegration(accountId, integrationName string, integration models.Integration) error

type IntegrationService

type IntegrationService interface {
	GetIntegrationFields(name string) (models.IntegrationDefinition, error)
	GetIntegrationByName(accountId, name string) (models.Integration, error)
	GetIntegrationForThirdPartyAccount(accountId, tpAccountId, intgType string) (models.Integration, error)
	DeleteIntegration(accountId string, integrationName string) error
	GetIntegrationTypes() ([]models.IntegrationDefinition, error)
	GetAllIntegrations(accountId, projectName string) ([]models.Integration, error)
	GetAllIntegrationsForAccountByType(accountId, projectName string, integrationTypes []string) ([]models.Integration, error)
	AddIntegration(accountId string, integration models.Integration) error
	SetRedisPair(key, value string, ttl time.Duration) (err error)
	UpdateIntegration(accountId, integrationName string, integration models.Integration) error
	GetConnectedAccount(accountId, integrationName string) (map[string]interface{}, error)
}

Jump to

Keyboard shortcuts

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