Documentation ¶
Index ¶
- func FinalizeConnectionInit(w http.ResponseWriter, r *http.Request, iid sdktypes.IntegrationID, ...)
- func New(is []sdkservices.Integration) sdkservices.Integrations
- func NewIntegration(desc sdktypes.Integration, mod sdkmodule.Module, opts ...OptFn) sdkservices.Integration
- type OAuthData
- type OptFn
- func WithConnectionConfig(fn func(context.Context, sdktypes.ConnectionID) (map[string]string, error)) OptFn
- func WithConnectionConfigFromVars(cvars sdkservices.Vars) OptFn
- func WithConnectionStatus(fn func(context.Context, sdktypes.ConnectionID) (sdktypes.Status, error)) OptFn
- func WithConnectionTest(fn func(context.Context, sdktypes.ConnectionID) (sdktypes.Status, error)) OptFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinalizeConnectionInit ¶ added in v0.5.0
func FinalizeConnectionInit(w http.ResponseWriter, r *http.Request, iid sdktypes.IntegrationID, data []sdktypes.Var)
FinalizeConnectionInit finalizes the connection initialization. This is done by encoding the init data into the connection initialization URL and redirecting the user there. The destination handler will save `data` in the connection's scope.
func New ¶
func New(is []sdkservices.Integration) sdkservices.Integrations
func NewIntegration ¶
func NewIntegration( desc sdktypes.Integration, mod sdkmodule.Module, opts ...OptFn, ) sdkservices.Integration
NewIntegration creates a new integration, augmenting the given `desc` with the members defintion from `mod`.
Types ¶
type OAuthData ¶ added in v0.5.0
func DecodeOAuthData ¶ added in v0.5.0
func GetOAuthDataFromURL ¶ added in v0.5.0
type OptFn ¶ added in v0.5.13
type OptFn func(*integration)
func WithConnectionConfig ¶ added in v0.6.6
func WithConnectionConfigFromVars ¶ added in v0.6.6
func WithConnectionConfigFromVars(cvars sdkservices.Vars) OptFn
func WithConnectionStatus ¶ added in v0.5.13
func WithConnectionTest ¶ added in v0.5.13
Click to show internal directories.
Click to hide internal directories.