Documentation
¶
Index ¶
- Variables
- func AddKeyToJSON(json string, key string, value interface{}) string
- func DeleteRowsInTable(dbHandle *sql.DB, table string)
- func DownloadObject(location string, bucket string, file *os.File)
- func FetchEventSchemaCount(dbHandle *sql.DB) int
- func GetConnectionString() string
- func GetDestinationIDsFromLoadFileTable(dbHandle *sql.DB, warehouseLoadFilesTable string, sourceID string) []string
- func GetEventLoadFileData(dbHandle *sql.DB, warehouseLoadFilesTable string, eventName string, ...) string
- func GetJobStatus(dbHandle *sql.DB, prefix string, limit int, jobState string) []*jobsdb.JobStatusT
- func GetJobStatusCount(dbHandle *sql.DB, jobState string, prefix string) int
- func GetJobsCount(dbHandle *sql.DB, prefix string) int
- func GetLatestJobs(dbHandle *sql.DB, prefix string, limit int) []*jobsdb.JobT
- func GetLoadFileTableName(dbHandle *sql.DB, warehouseLoadFilesTable string) []string
- func GetTableNamesWithPrefix(dbHandle *sql.DB, prefix string) []string
- func GetWarehouseSchema(dbHandle *sql.DB, warehouseSchemaTable string, sourceID string, ...) map[string]map[string]string
- func IsThisInThatSliceString(smallSlice []string, bigSlice []string) bool
- func RemoveKeyFromJSON(json string, keys ...string) string
- func SameStringSlice(x, y []string) bool
- func SendAliasRequest(userNameForBasicAuth, jsonPayload string) int
- func SendBatchRequest(userNameForBasicAuth, jsonPayload string) int
- func SendEventRequest(options EventOptsT) int
- func SendGroupRequest(userNameForBasicAuth, jsonPayload string) int
- func SendHealthRequest() []byte
- func SendIdentifyRequest(userNameForBasicAuth, jsonPayload string) int
- func SendLoadRequests()
- func SendPageRequest(userNameForBasicAuth, jsonPayload string) int
- func SendRequest(endPoint, userNameForBasicAuth, jsonPayload string) int
- func SendScreenRequest(userNameForBasicAuth, jsonPayload string) int
- func SendTrackRequest(userNameForBasicAuth, jsonPayload string) int
- func SendVersionRequest() []byte
- type EventOptsT
Constants ¶
This section is empty.
Variables ¶
var AliasPayload = `` /* 169-byte string literal not displayed */
var BQBatchPayload = `` /* 1004-byte string literal not displayed */
var BatchPayload = `` /* 1106-byte string literal not displayed */
var DTBatchPayload = `` /* 3199-byte string literal not displayed */
var DTSchema = map[string]map[string]string{
"ginkgo": {
"id": "string",
"event": "string",
"label": "string",
"value": "int",
"sent_at": "datetime",
"uuid_ts": "datetime",
"category": "string",
"timestamp": "datetime",
"context_ip": "string",
"event_text": "string",
"received_at": "datetime",
"anonymous_id": "string",
"context_locale": "string",
"context_app_name": "string",
"context_app_build": "string",
"context_device_id": "string",
"context_user_agent": "string",
"original_timestamp": "datetime",
"context_app_version": "string",
"context_device_name": "string",
"context_device_model": "string",
"context_screen_width": "int",
"context_app_namespace": "string",
"context_screen_height": "int",
"context_screen_density": "int",
"context_network_carrier": "string",
"context_traits_anonymousId": "string",
"context_device_manufacturer": "string",
},
"tracks": {
"id": "string",
"event": "string",
"sent_at": "datetime",
"uuid_ts": "datetime",
"timestamp": "datetime",
"context_ip": "string",
"event_text": "string",
"received_at": "datetime",
"anonymous_id": "string",
"context_locale": "string",
"context_app_name": "string",
"context_app_build": "string",
"context_device_id": "string",
"context_user_agent": "string",
"original_timestamp": "datetime",
"context_app_version": "string",
"context_device_name": "string",
"context_device_model": "string",
"context_screen_width": "int",
"context_app_namespace": "string",
"context_screen_height": "int",
"context_screen_density": "int",
"context_network_carrier": "string",
"context_traits_anonymousId": "string",
"context_device_manufacturer": "string",
},
}
var DiffStringFormatBatchPayload = `` /* 1146-byte string literal not displayed */
var GroupPayload = `` /* 230-byte string literal not displayed */
var IdentifyPayload = `` /* 227-byte string literal not displayed */
var LoadedJson = `` /* 1150-byte string literal not displayed */
var PagePayload = `` /* 211-byte string literal not displayed */
var ScreenPayload = `` /* 170-byte string literal not displayed */
var TrackPayload = `` /* 164-byte string literal not displayed */
Functions ¶
func AddKeyToJSON ¶
AddKeyToJSON adds a key and its value to the
func DeleteRowsInTable ¶
func FetchEventSchemaCount ¶
FetchEventSchemaCount returns count of event_uploads table TODO: Currently assuming that the config backend db is accessible from here. Change this to hit an endpoint to fetch the event schema count.
func GetConnectionString ¶
func GetConnectionString() string
func GetEventLoadFileData ¶
func GetJobStatus ¶
GetJobStatus returns job statuses (with a limit) across all tables with specified prefix
func GetJobStatusCount ¶
GetJobStatusCount returns count of job status across all tables with specified prefix
func GetJobsCount ¶
GetJobsCount returns count of jobs across all tables with specified prefix
func GetLatestJobs ¶
GetLatestJobs returns jobs (with a limit) across all tables with specified prefix
func GetLoadFileTableName ¶
GetLoadFileTableName quereis table column form the warehouseLoadFilesTable provided
func GetTableNamesWithPrefix ¶
GetTableNamesWithPrefix returns all table names with specified prefix
func GetWarehouseSchema ¶
func IsThisInThatSliceString ¶
func RemoveKeyFromJSON ¶
RemoveKeyFromJSON returns the json with keys removed from the input json
func SameStringSlice ¶
SameStringSlice checks if two slices have same strings in any order
func SendAliasRequest ¶
SendAliasRequest sends request to /v1/alias
func SendBatchRequest ¶
SendBatchRequest sends request to /v1/batch
func SendEventRequest ¶
func SendEventRequest(options EventOptsT) int
SendEventRequest sends sample event.json with EventOptionsT overrides to gateway server
func SendGroupRequest ¶
SendGroupRequest sends request to /v1/group
func SendIdentifyRequest ¶
SendIdentifyRequest sends request to /v1/identify
func SendPageRequest ¶
SendPageRequest sends request to /v1/page
func SendRequest ¶
SendRequest sends jsonPayload to gateway server with userNameForBasicAuth in basic auth
func SendScreenRequest ¶
SendScreenRequest sends request to /v1/screen
func SendTrackRequest ¶
SendTrackRequest sends request to /v1/track