Skip to content

Commit

Permalink
start working on setting up integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo committed Feb 2, 2025
1 parent f412216 commit 0ec862c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import (
// ENUM(oauth2,api_key)
type IntegrationType string

// ENUM(stripe,paystack,flutterwave,mercury,brex)
type IntegrationProvider string

type IntegrationMetadata struct {
Endpoint string `json:"endpoint,omitempty"`
}
Expand Down Expand Up @@ -58,7 +61,7 @@ type IntegrationRepository interface {
List(context.Context, *Workspace) ([]WorkspaceIntegration, error)
}

type IntegrationProvider interface {
Name() string
type IntegrationProviderClient interface {
Name() IntegrationProvider
io.Closer
}
43 changes: 43 additions & 0 deletions integration_enum.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ec862c

Please sign in to comment.