Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amp-labs/connectors
/ functions
Functions
8,532 in github.com/amp-labs/connectors
⨍
Functions
8,532
◇
Types & classes
1,636
↓ 19 callers
Function
WithAuthToken
WithAuthToken returns a new context with the given auth token.
common/auth.go:37
↓ 18 callers
Method
FlushSchemas
FlushSchemas stores schemas into the file without any modifications.
internal/staticschema/files.go:35
↓ 18 callers
Method
GetList
(bucket ID)
internal/datautils/lists.go:35
↓ 18 callers
Method
JSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client. This is useful for testing, or for calling methods that aren't exposed by the Connector interf
connectors.go:20
↓ 18 callers
Method
ListObjectMetadata
(ctx context.Context, objectNames []string)
connectors.go:133
↓ 18 callers
Function
With
With returns a new context with the given values added. The values are added to the logger automatically.
common/logging/logging.go:37
↓ 18 callers
Function
constructTestReadConnector
(serverURL string)
providers/acculynx/read_test.go:477
↓ 17 callers
Method
Failure
Failure fulfills the promise with an error. Use this when the async computation failed and you need to propagate the error. Example: fut, promise
internal/future/promise.go:129
↓ 17 callers
Method
FormatRFC3339inUTCWithMilliseconds
FormatRFC3339inUTCWithMilliseconds similar to FormatRFC3339inUTC but adds milliseconds. 15:04:05.039 => milliseconds is a decimal part of seconds.
internal/datautils/timing.go:25
↓ 17 callers
Method
GetRecordsByIds
GetRecordsByIds fetches full records from the provider for a specific set of IDs. This method is primarily used during webhook processing to enrich e
connectors.go:203
↓ 17 callers
Method
IntegerRequired
IntegerRequired returns the integer at key. Examples: IntegerRequired("") // current node IntegerRequired("count") // direct lookup New(n
internal/jsonquery/queries.go:172
↓ 17 callers
Function
ParseJSONResponse
ParseJSONResponse parses the given HTTP response and returns a JSONHTTPResponse.
common/json.go:139
↓ 17 callers
Function
Status2xx
(code int)
internal/httpkit/response.go:25
↓ 16 callers
Method
AwaitContext
AwaitContext blocks until the future completes or the context is canceled. This is the context-aware version of Await, allowing for timeouts and canc
internal/future/future.go:274
↓ 16 callers
Method
Close
()
providers/snowflake/connector.go:90
↓ 16 callers
Function
FilterSortedRecords
FilterSortedRecords filters and returns only the records that have changed since the last sync, based on a provided timestamp key and reference value.
common/readhelper/filter.go:60
↓ 15 callers
Method
After
(params common.ReadParams, timestamp time.Time)
common/readhelper/time.go:113
↓ 15 callers
Function
NewApiKeyHeaderAuthHTTPClient
NewApiKeyHeaderAuthHTTPClient returns a new http client, with automatic API key authentication. Specifically this means that the client will automatic
common/apiKey.go:12
↓ 15 callers
Method
NewClient
NewClient will create a new authenticated client based on the provider's auth type.
providers/utils.go:360
↓ 15 callers
Function
failOnError
(err error)
test/utils/testscenario/crud.go:300
↓ 15 callers
Function
runWrite
runWrite invokes Write with the given params and logs the outcome. Errors are recorded as warnings (not fatal) so subsequent tests still run — useful
test/acculynx/write/main.go:191
↓ 14 callers
Function
CheckOutput
(t *testing.T, name string, expected any, actual any, )
test/utils/testutils/checks.go:90
↓ 14 callers
Function
ExtractLowercaseFieldsFromRaw
ExtractLowercaseFieldsFromRaw returns a map of fields from a record. The fields are all returned in lowercase.
common/parse.go:178
↓ 14 callers
Method
Go
Go executes the callback in a new goroutine and resolves the promise with the result. Panics are recovered and converted to errors.
internal/future/executor.go:15
↓ 14 callers
Method
IsCreate
IsCreate reports whether the Write is creating a new record. Write is considered a Create when no record identifier is provided. Callers should prefe
common/types.go:281
↓ 14 callers
Method
IsEmpty
()
common/xquery/queries.go:40
↓ 14 callers
Function
MakeMarshaledDataFuncWithId
MakeMarshaledDataFuncWithId constructs a MarshalFromNodeFunc that converts records into ReadResultRow slices with the Id field populated. It combines
common/readhelper/id.go:92
↓ 14 callers
Function
NewPath
(path string)
tools/fileconv/files.go:53
↓ 14 callers
Function
ValidateMetadataContainsRead
ValidateMetadataContainsRead checks that every field present in the Read response is declared in the metadata returned by ListObjectMetadata for the s
test/utils/testscenario/matching-metadata.go:83
↓ 14 callers
Function
createError
(baseErr error, hubspotError *HubspotError)
providers/hubspot/internal/core/errors.go:56
↓ 14 callers
Function
setupAssociationConnector
setupAssociationConnector creates a connector with schemas that have associations
memstore/associations_test.go:141
↓ 13 callers
Method
AppendError
AppendError will associate an error with the object. It is possible that single object may have multiple errors.
common/types.go:697
↓ 13 callers
Function
DoesObjectCorrespondToString
(object any, correspondent string)
test/utils/mockutils/checks.go:9
↓ 13 callers
Method
GoContext
GoContext executes the callback with a context in a new goroutine and resolves the promise. The context allows for cancellation and timeout handling.
internal/future/executor.go:19
↓ 13 callers
Method
HTTPClient
()
providers/chilipiper/client.go:10
↓ 13 callers
Method
HTTPClient
()
providers/outreach/client.go:10
↓ 13 callers
Method
HTTPClient
()
providers/salesforce/client.go:10
↓ 13 callers
Method
HTTPClient
()
providers/marketo/client.go:10
↓ 13 callers
Function
InterpretError
InterpretError interprets the given HTTP response (in a fairly straightforward way) and returns an error that can be handled by the caller.
common/error.go:16
↓ 13 callers
Function
IsVerboseLogging
IsVerboseLogging returns true if the logger is configured to allow verbose messages.
common/logging/logging.go:66
↓ 13 callers
Method
KeySet
()
internal/datautils/maps.go:75
↓ 13 callers
Method
PrepareInput
()
test/utils/testconn/outline.go:47
↓ 13 callers
Method
SetUnitTestMockServerBaseURL
SetUnitTestMockServerBaseURL replaces the URL Origin with mock server URL Origin. This allows to reroute all requests to mock server used in unit test
internal/components/transport.go:67
↓ 13 callers
Function
VerboseLogger
VerboseLogger returns a logger used for more verbose logging. nolint:contextcheck,cyclop
common/logging/logging.go:113
↓ 13 callers
Method
cancel
cancel marks the promise as canceled and executes all registered cancel functions. This is an internal method used by the future package for cancella
internal/future/promise.go:43
↓ 12 callers
Method
AssertErr
AssertErr compares expected and actual errors and records a mismatch in the result if they do not match. Matching rules: - If both expectedErr and a
test/utils/testutils/comparison.go:136
↓ 12 callers
Method
GenerateRandomRecord
GenerateRandomRecord generates a random record conforming to the object's schema.
memstore/connector.go:439
↓ 12 callers
Method
HTTPClient
()
providers/docusign/client.go:14
↓ 12 callers
Method
Has
(target Header)
common/http.go:78
↓ 12 callers
Method
Int64
Int64 adds a 64-bit integer to the hash. The integer is encoded as 8 bytes in big-endian format for deterministic representation across different arch
memstore/hashing.go:141
↓ 12 callers
Function
MakeGetMarshaledDataWithId
MakeGetMarshaledDataWithId constructs a MarshalFunc that converts records into ReadResultRow slices with the Id field populated. It uses the provided
common/readhelper/id.go:59
↓ 12 callers
Function
NewXML
(data []byte)
common/xquery/queries.go:19
↓ 12 callers
Function
PrettyFormatStringJSON
nolint:errchkjson
tools/debug/print.go:6
↓ 12 callers
Method
SelectOne
SelectOne reads one object metadata from the static file. NOTE: empty module id is treated as root module.
internal/staticschema/convertors.go:46
↓ 12 callers
Method
Subscribe
( ctx context.Context, params common.SubscribeParams, )
test/utils/testconn/connector.go:94
↓ 12 callers
Function
ValidateMetadataExactlyMatchesRead
ValidateMetadataExactlyMatchesRead verifies that *all* metadata fields returned by ListObjectMetadata are present in the Read response for the object.
test/utils/testscenario/matching-metadata.go:33
↓ 12 callers
Method
Values
()
internal/datautils/maps.go:85
↓ 12 callers
Method
Values
()
common/stringMap.go:35
↓ 12 callers
Function
mustParseSchema
Helper function to parse JSON schema into InputSchema
memstore/connector_test.go:21
↓ 12 callers
Function
newClassedErr
newClassedErr constructs a classified sentinel error. The actual error (errors.New) is stored inside and accessible via Unwrap(). The returned pointer
common/errorclass.go:92
↓ 12 callers
Function
readObject
readObject reads data from a SuperSend object and prints the results.
test/supersend/read/main.go:63
↓ 11 callers
Method
Add
Add will appropriately store the data, abiding to data structure rules. NOTE: empty module id is treated as root module.
internal/staticschema/core.go:143
↓ 11 callers
Method
BoolWithDefault
(key string, defaultValue bool)
internal/jsonquery/defaults.go:62
↓ 11 callers
Function
Close
Close closes the given Closer and fails if there is an error.
test/utils/close.go:6
↓ 11 callers
Function
ContentHTML
ContentHTML is a setup handler, which configures server to use HTML.
test/utils/mockutils/mockserver/handlers.go:20
↓ 11 callers
Function
CustomFieldKey
CustomFieldKey returns the connector field name for a GetResponse customFieldId.
providers/getresponse/custom.go:43
↓ 11 callers
Function
DefaultStatusCodeMappingToErr
(res *http.Response, body []byte)
common/interpreter/statusCode.go:13
↓ 11 callers
Method
DeleteSubscription
( ctx context.Context, previousResult common.SubscriptionResult, )
test/utils/testconn/connector.go:111
↓ 11 callers
Method
GetString
(key string)
common/scanning/registry.go:68
↓ 11 callers
Function
NewCompositeSchemaProvider
(schemaProviders ...components.SchemaProvider)
internal/components/schema/composite.go:25
↓ 11 callers
Function
NewListObjectMetadataResult
()
common/types.go:669
↓ 11 callers
Function
NewPluralString
(str string)
common/naming/plural.go:15
↓ 11 callers
Method
ObjectName
()
common/types.go:828
↓ 11 callers
Function
Permute
Permute generates an Or condition containing one branch for every permutation of the provided items. For each permutation, the conditionMaker function
test/utils/mockutils/mockcond/permutation.go:50
↓ 11 callers
Method
Plural
()
common/naming/singular.go:31
↓ 11 callers
Function
ResponseChainedFuncs
ResponseChainedFuncs combines functions into order pipeline. Together acts as unified response handler. This is useful if Response method or ResponseS
test/utils/mockutils/mockserver/handlers.go:69
↓ 11 callers
Method
UpdateSubscription
( ctx context.Context, params common.SubscribeParams, previousResult *common.SubscriptionResult, )
test/utils/testconn/connector.go:102
↓ 11 callers
Method
Where
(condition string)
providers/salesforce/internal/crm/core/soql.go:56
↓ 11 callers
Method
buildJobNestedURL
buildJobNestedURL extracts jobId from the record and builds a URL of the form api/v2/jobs/{jobId}/<segments...>. Returns errMissingParentID if jobId i
providers/acculynx/write.go:254
↓ 11 callers
Method
incrementField
incrementField adds a field separator (null byte) before each field after the first. This ensures that different field combinations produce different
memstore/hashing.go:230
↓ 10 callers
Method
BoolOptional
BoolOptional returns the bool at key if present. Examples: IntegerOptional("") // current node BoolOptional("enabled") // dire
internal/jsonquery/queries.go:279
↓ 10 callers
Method
BoolRequired
BoolRequired returns the bool at key. Examples: BoolRequired("") // current node BoolRequired("enabled") // direct lookup New(node, "a",
internal/jsonquery/queries.go:296
↓ 10 callers
Method
EventType
()
common/types.go:826
↓ 10 callers
Function
Execute
Execute concurrently runs all provided tasks in parallel and collects their results into a Result struct containing both successful records and errors
internal/parallelfetch/fetch.go:67
↓ 10 callers
Function
ForEach
ForEach applies the provided function f to each element of s, returning a new slice containing the results. Example: names := []string{"alice", "bo
internal/datautils/slice.go:61
↓ 10 callers
Method
Get
(key string)
common/stringMap.go:53
↓ 10 callers
Method
Get
Get makes a GET request to the given URL and returns the response. If the response is not a 2xx, an error is returned. If the response is a 401, the c
common/http.go:194
↓ 10 callers
Method
GetRecordsByIds
( ctx context.Context, objectName string, recordIds []string, fields []string, associations []string
test/utils/testconn/connector.go:69
↓ 10 callers
Function
NewBasicAuthClient
( ctx context.Context, reader *credscanning.ProviderCredentials, )
test/utils/creds.go:92
↓ 10 callers
Function
NewConnector
( provider providers.Provider, opts ...Option, )
generic/connector.go:15
↓ 10 callers
Method
RawEventName
()
common/types.go:827
↓ 10 callers
Method
ReadObjects
ReadObjects will explore OpenAPI file returning list of Schemas. See every parameter for detailed customization. operationName - under which REST ope
tools/fileconv/api3/queries.go:82
↓ 10 callers
Method
RecordId
()
common/types.go:830
↓ 10 callers
Method
Run
(t *testing.T, builder testconn.ConnectorBuilder[*Connector])
providers/salesforce/bulk-info_test.go:292
↓ 10 callers
Method
Search
(ctx context.Context, params *common.SearchParams)
test/utils/testconn/connector.go:64
↓ 10 callers
Function
WithAuthenticatedClient
WithAuthenticatedClient sets the http client to use for the connector. Its usage is optional.
generic/params.go:55
↓ 10 callers
Method
WithQueryParamList
(name string, values []string)
common/urlbuilder/url.go:91
↓ 10 callers
Method
WithUnencodedQueryParam
WithUnencodedQueryParam adds a single unencoded query param.
common/urlbuilder/url.go:100
↓ 10 callers
Function
constructTestConnector
(serverURL string)
providers/hubspot/metadata_test.go:707
↓ 10 callers
Function
customFieldAPIName
(fieldName string)
providers/salesforce/subscribe.go:905
← previous
next →
201–300 of 8,532, ranked by callers