Documentation
¶
Index ¶
- Variables
- func SetService(svc Service)
- type DefaultService
- func (*DefaultService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Integration, error)
- func (*DefaultService) List(ctx context.ServiceContext, client *clients.GQLClient, ...) (*Integrations, error)
- func (*DefaultService) ListEntities(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, ...) (interface{}, error)
- func (*DefaultService) ListSubEntities(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, ...) (interface{}, error)
- func (*DefaultService) Setup(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, ...) (*Integration, error)
- func (d *DefaultService) Sync(ctx context.ServiceContext, client *clients.GQLClient, options *SyncOptions) error
- type Entities
- type Entity
- type Integration
- type Integrations
- type ListEntitiesRequest
- type ListEntitiesRequestOptions
- type ListIntegrationFilters
- type Service
- type SetupOptions
- type SyncOptions
- type Type
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SetService ¶
func SetService(svc Service)
Types ¶
type DefaultService ¶ added in v1.1.5
type DefaultService struct{}
func (*DefaultService) Get ¶ added in v1.1.5
func (*DefaultService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Integration, error)
func (*DefaultService) List ¶ added in v1.1.5
func (*DefaultService) List(ctx context.ServiceContext, client *clients.GQLClient, options *ListIntegrationFilters) (*Integrations, error)
func (*DefaultService) ListEntities ¶ added in v1.1.5
func (*DefaultService) ListEntities(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, integrationID string, options map[string]interface{}) (interface{}, error)
func (*DefaultService) ListSubEntities ¶ added in v1.1.5
func (*DefaultService) ListSubEntities(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, integrationID string, params url.Values) (interface{}, error)
func (*DefaultService) Setup ¶ added in v1.1.5
func (*DefaultService) Setup(ctx context.ServiceContext, client *clients.GQLClient, integrationType Type, options *SetupOptions) (*Integration, error)
func (*DefaultService) Sync ¶ added in v1.1.5
func (d *DefaultService) Sync(ctx context.ServiceContext, client *clients.GQLClient, options *SyncOptions) error
type Integration ¶ added in v1.1.5
type Integration struct { ID string `json:"id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UserID string `json:"user_id,omitempty"` OrgID string `json:"org_id"` InstallationID string `json:"installation_id"` Type Type `json:"type"` Credentials string `json:"credentials,omitempty"` }
func (*Integration) GetDescription ¶ added in v1.1.5
func (i *Integration) GetDescription() string
Get the description of the integration by it's type.
func (*Integration) GetSubtitle ¶ added in v1.1.5
func (i *Integration) GetSubtitle() string
Get the subtitle of the integration by it's type.
func (*Integration) GetTitle ¶ added in v1.1.5
func (i *Integration) GetTitle() string
Get the title of the integration by it's type.
type Integrations ¶ added in v1.1.5
type Integrations []Integration
type ListEntitiesRequest ¶ added in v1.1.5
type ListEntitiesRequestOptions ¶ added in v1.1.5
type ListIntegrationFilters ¶ added in v1.1.5
type Service ¶
type Service interface { Get(context.ServiceContext, *clients.GQLClient, string) (*Integration, error) List(context.ServiceContext, *clients.GQLClient, *ListIntegrationFilters) (*Integrations, error) ListEntities(context.ServiceContext, *clients.GQLClient, Type, string, map[string]interface{}) (interface{}, error) ListSubEntities(context.ServiceContext, *clients.GQLClient, Type, string, url.Values) (interface{}, error) Setup(context.ServiceContext, *clients.GQLClient, Type, *SetupOptions) (*Integration, error) Sync(context.ServiceContext, *clients.GQLClient, *SyncOptions) error }
func GetService ¶
func GetService() Service
type SetupOptions ¶ added in v1.1.5
type SyncOptions ¶ added in v1.1.5
type SyncOptions struct { EventID string `json:"event_id"` IntegrationID string `json:"integration_id"` EntityDetails map[string]interface{} `json:"entity_details"` Data *keypayload.KPMap `json:"data"` }
Click to show internal directories.
Click to hide internal directories.