Documentation ¶
Index ¶
- type IntegrationManager
- func (manager *IntegrationManager) AddIntegration(accountId string, integration models.Integration) error
- func (manager *IntegrationManager) DeleteIntegration(accountId string, integrationName string) (err error)
- func (manager *IntegrationManager) GetAllIntegrations(accountId, projectName string) ([]models.Integration, error)
- func (manager *IntegrationManager) GetAllIntegrationsForAccountByType(accountId, projectName string, integrationTypes []string) ([]models.Integration, error)
- func (manager *IntegrationManager) GetConnectedAccount(accountId, integrationName string) (map[string]interface{}, error)
- func (manager *IntegrationManager) GetIntegrationByName(accountId, name string) (models.Integration, error)
- func (manager *IntegrationManager) GetIntegrationFields(name string) (models.IntegrationDefinition, error)
- func (manager *IntegrationManager) GetIntegrationForThirdPartyAccount(accountId, tpAccountId, integType string) (models.Integration, error)
- func (manager *IntegrationManager) GetIntegrationTypes() ([]models.IntegrationDefinition, error)
- func (manager *IntegrationManager) SetRedisPair(key, value string, ttl time.Duration) (err error)
- func (manager *IntegrationManager) UpdateIntegration(accountId, integrationName string, integration models.Integration) error
- type IntegrationService
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) }
func NewIntegrationService ¶
func NewIntegrationService(store integrationStore.IntegrationStore, redisStore redisStore.RedisStore, OauthStore oauthStore.OauthStore) IntegrationService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.