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
↓ 45 callers
Method
ArrayRequired
ArrayRequired returns the integer at key. Examples: ArrayRequired("") // current node ArrayRequired("count") // direct lookup New(node,
internal/jsonquery/queries.go:355
↓ 45 callers
Method
IntegerOptional
IntegerOptional returns the integer at key if present. Examples: IntegerOptional("") // current node IntegerOptional("count")
internal/jsonquery/queries.go:154
↓ 44 callers
Function
CalculateQueryParamStats
CalculateQueryParamStats produces statistics on objects and their query parameters. queryParamRegistry - holds query parameter name to the list of obj
tools/scrapper/models.go:94
↓ 44 callers
Method
Close
()
providers/kit/client.go:14
↓ 44 callers
Function
NewDenyPathStrategy
NewDenyPathStrategy produces a path matching strategy that will deny only those paths that matched the list. Others will be allowed. You can use star
tools/fileconv/api3/strategy.go:42
↓ 44 callers
Method
Nil
Nil adds a nil marker (byte value 0) to the hash. Used to explicitly represent nil values in the hash computation.
memstore/hashing.go:60
↓ 44 callers
Method
ObjectRequired
ObjectRequired returns the object at key. Examples: ObjectRequired("") // current node ObjectRequired("user") // direct lookup New(node,
internal/jsonquery/queries.go:117
↓ 44 callers
Method
SaveQueryParamStats
(stats *QueryParamStats)
tools/scrapper/files.go:63
↓ 43 callers
Method
ArrayToMap
(arr []*ajson.Node)
internal/jsonquery/converters.go:15
↓ 42 callers
Method
Find
Find looks up the endpoint for the object. The resulting endpoint will have fully formed URL respecting object name and record id which could be empty
providers/google/internal/core/commands.go:21
↓ 42 callers
Method
HTTPClient
HTTPClient returns the underlying HTTP client. This is useful for proxy requests.
connectors.go:23
↓ 42 callers
Function
NewCompareResult
NewCompareResult creates a successful comparison result instance.
test/utils/testutils/comparison.go:49
↓ 42 callers
Function
WithSchemas
WithSchemas configures the connector with pre-parsed JSON schemas. Use this option when you have already parsed jsonschema.Schema objects. This is an
memstore/params.go:81
↓ 41 callers
Function
DoCtx
DoCtx runs the given functions in parallel and returns the first error encountered. If no error is encountered, it returns nil. In the event that an e
internal/simultaneously/simultaneously.go:35
↓ 41 callers
Function
NewSetFromList
NewSetFromList creates a set from slice.
internal/datautils/set.go:24
↓ 41 callers
Method
SetBaseURL
SetBaseURL fans the override out to any active module adapter so that unit tests pointing at a mock server reach the same host the top-level connector
providers/goto/connector.go:87
↓ 41 callers
Method
Write
Write creates or updates a record. nolint:cyclop,funlen,nestif // Complexity from create/update branching and ID/timestamp generation logic
memstore/connector.go:278
↓ 40 callers
Method
GetString
(key string)
common/stringMap.go:111
↓ 40 callers
Method
Len
()
common/stringMap.go:39
↓ 39 callers
Method
Validate
()
common/xml.go:124
↓ 38 callers
Method
Error
Error packs every field into one string so the existing server-side log pattern `logger.Error("...", "error", err)` surfaces all diagnostic detail wit
providers/microsoft/errors.go:166
↓ 38 callers
Function
NewOAuthHTTPClient
NewOAuthHTTPClient returns a new http client, with automatic OAuth authentication. Specifically this means that the client will automatically refresh
common/oauth.go:31
↓ 38 callers
Method
Set
(key K, value V)
internal/datautils/cache.go:25
↓ 38 callers
Method
TextWithDefault
TextWithDefault returns a string under the key regardless of JSON data type. If data is not a string it will be converted to such.
internal/jsonquery/defaults.go:36
↓ 38 callers
Function
ValidateCreateUpdateDelete
ValidateCreateUpdateDelete is a comprehensive test scenario utilizing Read/Write/Delete connector operations. Flow: 1. Create an object using the "CP
test/utils/testscenario/crud.go:80
↓ 38 callers
Function
WithOAuthClient
WithOAuthClient sets the http client to use for the connector. Its usage is optional.
common/oauth.go:61
↓ 37 callers
Function
WithOAuthConfig
WithOAuthConfig sets the oauth config to use for the connector. It's required, unless a token source is provided.
common/oauth.go:77
↓ 37 callers
Function
WithOAuthToken
WithOAuthToken sets the oauth token to use for the connector. It's required, unless a token source is provided.
common/oauth.go:69
↓ 36 callers
Method
Delete
Delete removes a record by its ID for the specified object type. Parameters: - objectName: The type of object containing the record (e.g., "contact",
memstore/storage.go:113
↓ 36 callers
Method
FormatRFC3339inUTC
nolint:gochecknoglobals FormatRFC3339inUTC will convert time to UTC respecting the time zone difference and only then apply time.RFC3339 format.
internal/datautils/timing.go:14
↓ 36 callers
Method
LookupArrayFieldName
LookupArrayFieldName will give you the field name which holds the array of objects in provider response. Ex: CustomerSubscriptions is located under fi
internal/staticschema/core.go:321
↓ 36 callers
Method
Read
Read reads a page of data from the connector. This can be called multiple times to read all the data. The caller is responsible for paging, by passing
connectors.go:94
↓ 36 callers
Method
WithAuthenticatedClient
WithAuthenticatedClient sets up an HTTP client that uses your implementation of authentication.
common/paramsbuilder/authclient.go:33
↓ 35 callers
Function
FromRawURL
FromRawURL creates an independent copy of a net/url.URL as *urlbuilder.URL. Unlike direct pointer use, mutations to the returned URL—including path c
common/urlbuilder/url.go:68
↓ 35 callers
Function
MakeMarshaledDataFunc
MakeMarshaledDataFunc constructs a MarshalFromNodeFunc that converts records into ReadResultRow slices. It applies an optional RecordTransformer to ea
common/parse.go:240
↓ 34 callers
Function
BodyBytes
BodyBytes returns a check that expects the request body to match the provided template bytes. If ignore rules are provided, they are applied when com
test/utils/mockutils/mockcond/body.go:35
↓ 34 callers
Function
NewIdField
NewIdField creates an IdFieldQuery for a flat ID field at the root level. This is the common case where the ID is directly accessible as record[field]
common/readhelper/id.go:32
↓ 33 callers
Method
FindURLPath
(moduleID common.ModuleID, objectName string)
internal/staticschema/core.go:286
↓ 33 callers
Method
SaveSchemas
SaveSchemas is useful method when creating or updating static schema file. Deprecated. Use FlushSchemas. Common URL path stored as a module path will
internal/staticschema/files.go:28
↓ 30 callers
Method
Clone
()
common/printable.go:290
↓ 30 callers
Function
FromMap
FromMap converts golang map into Map resolving generic types on its own. Example: Given: dictionary = make(map[string]string) Then statements are
internal/datautils/maps.go:23
↓ 30 callers
Function
RecordDataToMap
RecordDataToMap converts WriteParams.RecordData into a map[string]any. When possible use WriteParams.GetRecord instead. If RecordData is already a m
common/types.go:308
↓ 30 callers
Method
SetUnitTestBaseURL
SetUnitTestBaseURL should be used for setting up unit tests. To better handle diverse Module vs Provider BaseURLs use SetUnitTestMockServerBaseURL. De
internal/components/transport.go:59
↓ 29 callers
Function
QueryParamsMissing
(keys ...string)
test/utils/mockutils/mockcond/queries.go:16
↓ 29 callers
Method
Text
Text provides inner text of this node.
common/xquery/queries.go:108
↓ 29 callers
Function
constructTestConnector
(serverURL string)
providers/salesforce/read_test.go:562
↓ 28 callers
Method
Value
()
common/scanning/readers.go:13
↓ 27 callers
Method
Build
(t *testing.T, testCaseName string)
test/utils/testconn/connector.go:18
↓ 27 callers
Function
CapitalizeFirstLetterEveryWord
CapitalizeFirstLetterEveryWord makes all words start with capital except some prepositions.
tools/fileconv/api3/parameters.go:63
↓ 27 callers
Method
Fields
()
providers/dynamicsbusiness/responses.go:69
↓ 27 callers
Method
HTTPClient
()
providers/pipedrive/client.go:10
↓ 27 callers
Method
HTTPClient
()
providers/stripe/client.go:12
↓ 27 callers
Method
JSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client.
providers/kit/client.go:6
↓ 27 callers
Method
LookupURLPath
LookupURLPath will give you the URL path for the object located under the module. NOTE: empty module id is treated as root module. Deprecated. Use Fi
internal/staticschema/core.go:274
↓ 27 callers
Method
ObjectNames
ObjectNames provides a registry of object names grouped by module.
internal/staticschema/core.go:249
↓ 27 callers
Method
Run
Run provides a procedure to test connectors.ObjectMetadataConnector
providers/microsoft/internal/batch/operation_test.go:111
↓ 25 callers
Method
Do
(req *http.Request)
common/auth.go:21
↓ 25 callers
Method
IsUpdate
IsUpdate reports whether the write operation is an update rather than a Create. Write is considered an update when a non-empty RecordId is provided.
common/types.go:289
↓ 24 callers
Method
AddFieldMetadata
AddFieldMetadata updates Fields and FieldsMap fields ensuring data consistency.
common/types.go:726
↓ 24 callers
Method
HTTPClient
()
providers/gong/client.go:10
↓ 24 callers
Method
Select
(objectNames []string)
providers/salesforce/internal/pardot/metadata.go:55
↓ 23 callers
Function
CapitalizeFirstLetter
(text string)
common/naming/formatting.go:25
↓ 23 callers
Function
CheckOutputWithError
CheckOutputWithError verifies both output values and returned errors produced by a test case. Special handling: - If expectedErr is nil, any actual e
test/utils/testutils/checks.go:50
↓ 23 callers
Function
CustomMappingObjectCheck
CustomMappingObjectCheck builds ObjectArrayLocator using mapping, which knows exceptions and patterns to determine response field name. Ex: CustomM
tools/fileconv/api3/parameters.go:51
↓ 23 callers
Method
GetJSONReader
(filepath string)
common/scanning/credscanning/fields.go:133
↓ 23 callers
Method
IntegerWithDefault
(key string, defaultValue int64)
internal/jsonquery/defaults.go:8
↓ 23 callers
Function
MakeRecordsFunc
MakeRecordsFunc returns a function that extracts an array of record nodes from a JSON document. The jsonPath defines where the records array resides.
common/parse.go:292
↓ 23 callers
Method
Merge
Merge combines another CompareResult into the receiver. Updates OK status (true only if both were true) and concatenates all Diff messages. Ignores n
test/utils/testutils/comparison.go:179
↓ 23 callers
Method
String
String adds a string value to the hash. The string is written as UTF-8 bytes.
memstore/hashing.go:51
↓ 23 callers
Method
getRestApiURL
(paths ...string)
providers/salesforce/connector.go:184
↓ 22 callers
Method
AddOne
AddOne will add single value to the unique set.
internal/datautils/set.go:39
↓ 22 callers
Method
ApplyToRequest
(req *http.Request)
common/http.go:44
↓ 22 callers
Function
ContentMIME
ContentMIME is a setup handler, which configures custom media type.
test/utils/mockutils/mockserver/handlers.go:34
↓ 22 callers
Method
Error
()
providers/salesforce/internal/crm/core/errors.go:90
↓ 22 callers
Function
ExtractOptionalRecordsFromPath
(jsonPath string, nestedPath ...string)
common/parse.go:302
↓ 22 callers
Method
GetFirstQueryParam
(name string)
common/urlbuilder/url.go:109
↓ 22 callers
Method
HTTPClient
()
providers/closecrm/client.go:10
↓ 22 callers
Method
HTTPClient
()
providers/attio/client.go:10
↓ 22 callers
Method
Hashable
Hashable adds a hashable type to the hash computation. Nil values are represented as byte 0, non-nil values as byte 1 followed by the result of callin
memstore/hashing.go:198
↓ 22 callers
Function
MakeIdentityFilterFunc
MakeIdentityFilterFunc returns a RecordsFilterFunc that allows all records to pass through unchanged. It delegates pagination control entirely to the
common/readhelper/filter.go:129
↓ 22 callers
Function
NewHTTPError
NewHTTPError creates a new error with the given HTTP status.
common/types.go:569
↓ 22 callers
Function
PageSizeWithDefaultStr
PageSizeWithDefaultStr returns the user-specified page size from params, converted to a string. If params.PageSize is empty value, defaultPageSize is
common/readhelper/page-size.go:11
↓ 22 callers
Method
Read
Read retrieves records for an object with pagination and filtering. nolint:cyclop,funlen,gocognit // Complexity from pagination, filtering, field sel
memstore/connector.go:147
↓ 22 callers
Method
Success
Success fulfills the promise with a successful value. Use this when the async computation succeeded and you have a value to provide. Example: fut,
internal/future/promise.go:100
↓ 22 callers
Method
write
write writes bytes to the hash and accumulates any errors. Errors are rare with standard hash implementations but are tracked for completeness.
memstore/hashing.go:240
↓ 21 callers
Method
Close
()
test/utils/testconn/outline.go:55
↓ 21 callers
Method
GetPostAuthInfo
(ctx context.Context)
test/utils/testconn/connector.go:29
↓ 21 callers
Function
MakeTimeFilterFunc
MakeTimeFilterFunc returns a RecordsFilterFunc that filters records based on timestamp boundaries. It uses the provided TimeOrder to determine whether
common/readhelper/filter.go:151
↓ 21 callers
Function
NewAPIKeyClient
( ctx context.Context, reader *credscanning.ProviderCredentials, provider providers.Provider, )
test/utils/creds.go:70
↓ 21 callers
Function
NewTimeBoundary
NewTimeBoundary constructs a TimeBoundary using the provided options. By default, both Since and Until are inclusive. Examples: b := NewTimeBounda
common/readhelper/time.go:51
↓ 21 callers
Function
ParseResultFiltered
ParseResultFiltered parses the response from a provider into a ReadResult. A 2xx return type is assumed. The sizeFunc returns the total number of reco
common/parse.go:123
↓ 21 callers
Method
Provider
Provider returns the connector provider.
connectors.go:26
↓ 20 callers
Method
Keys
()
internal/datautils/maps.go:66
↓ 20 callers
Method
MustString
(credKey string)
common/scanning/registry.go:203
↓ 20 callers
Method
WithOauthClient
WithOauthClient option that sets up client that utilises Oauth2 authentication.
common/paramsbuilder/client.go:19
↓ 20 callers
Function
bail
(label string, err error)
test/gusto/write/main.go:479
↓ 19 callers
Method
HTTPClient
()
providers/freshdesk/client.go:10
↓ 19 callers
Function
NewOauth2Client
( ctx context.Context, reader *credscanning.ProviderCredentials, configProvider func(*credscanning.Provider
test/utils/creds.go:40
↓ 19 callers
Function
NewObjectMetadata
NewObjectMetadata constructs ObjectMetadata. This will automatically infer fields map from field metadata map. This construct exists for such convenie
common/types.go:717
↓ 19 callers
Function
WithArrayItemAutoSelection
WithArrayItemAutoSelection enables automatic selection of the array field in API responses if it is the only array type present. Default: Disabled. U
tools/fileconv/api3/parameters.go:236
← previous
next →
101–200 of 8,532, ranked by callers