MCPcopy Create free account

hub / github.com/KyleBanks/go-kit / functions

Functions206 in github.com/KyleBanks/go-kit

↓ 1 callersMethodstart
start begins the execution of the Job's function. Note: It is unsafe to call `start` more than once!
job/job.go:30
↓ 1 callersFunctiontestHashKey
(t *testing.T, tbl *Table, k keyProvider)
gonamo/table_test.go:166
↓ 1 callersFunctiontestRangeKey
(t *testing.T, tbl *Table, k keyProvider)
gonamo/table_test.go:174
MethodAttributes
()
gonamo/persistable_test.go:17
MethodAutoMigrate
AutoMigrate performs database migration for all Model types provided.
orm/orm.go:55
MethodBatchDelete
BatchDelete performs a batch of delete requests, one for each of the Persistables provided.
gonamo/table.go:145
MethodBatchWrite
BatchWrite handles paging and sending a batch write against a single table.
gonamo/table.go:159
MethodBegin
Begin starts a new database transaction.
orm/orm.go:71
MethodDelete
Delete removes an item from the cache by it's key.
cache/cache.go:119
MethodDeleteItem
DeleteItem deletes the item identified by the provided hash and (optional) range key.
gonamo/table.go:135
MethodExec
Exec performs a raw SQL query against the underlying database.
orm/orm.go:66
MethodExpire
(key string, seconds time.Duration)
cache/cache.go:46
MethodExpire
Expire sets the time for a key to expire in seconds.
cache/cache.go:130
MethodFind
Find performs a GetItem on the underlying table with a particular hash and (optional) range key. If the table has no range key, this would be the sam
gonamo/table.go:80
MethodFindAllByHash
FindAllByHash finds all items with the specified hash key value. If the table has no range key, this would be the same output as Find.
gonamo/table.go:103
MethodGetMarshaled
(key string, v interface{})
cache/cache.go:43
MethodGetMarshaled
GetMarshaled retrieves an item from the cache with the specified key, and un-marshals it from JSON to the value provided. If they key doesn't exist,
cache/cache.go:104
MethodGetMarshaled
GetMarshaled retrieves an item from the cache with the specified key, and un-marshals it from JSON to the value provided. If they key doesn't exist,
cache/mock.go:69
MethodHashKey
()
gonamo/persistable_test.go:9
MethodHashedPassword
()
auth/auth_test.go:20
MethodLast
Last returns the last model (ordered by ID) that matches the specified query.
orm/orm.go:101
MethodLock
Lock attempts to put a lock on the key for a specified duration (in milliseconds). If the lock was successfully acquired, true will be returned. Note
cache/cache.go:146
MethodLock
Lock attempts to put a lock on the key for a specified duration (in milliseconds).
cache/mock.go:106
MethodModelWithID
ModelWithID returns an instance of the specified model with the given ID.
orm/orm.go:106
FunctionNewAndroidPusher
NewAndroidPusher returns an AndroidPusher, initialized with the specified GCM API key.
push/android-pusher.go:19
FunctionNewIosPusher
NewIosPusher returns an IosPusher, initialized with the specified certificate and key files.
push/ios-pusher.go:30
FunctionNewLogger
NewLogger returns a timer that immediately logs 'BEGAN <msg>' and again logs 'ENDED <msg>' when the returned function is executed, along with the time
timer/timer.go:35
FunctionNewMock
NewMock instantiates and returns a new Mock cache.
cache/mock.go:20
MethodOpen
Open creates a database connection, or returns an existing one if present.
orm/orm.go:33
MethodPutItem
PutItem performs an insert into DynamoDB.
gonamo/table.go:125
MethodPutMarshaled
(key string, value interface{})
cache/cache.go:42
MethodPutMarshaled
PutMarshaled stores a json marshalled value with the given key.
cache/cache.go:89
MethodPutMarshaled
PutMarshaled stores a json marshalled value with the given key.
cache/mock.go:54
MethodRangeKey
()
gonamo/persistable_test.go:13
FunctionRegister
Register registers each Route with the Server provided. Each Route will be wrapped in a middleware function that adds trace logging.
router/router.go:29
MethodSave
Save updates a model with the given attributes.
orm/orm.go:86
MethodScanAll
ScanAll performs a scan on the entire underlying DynamoDB table, and executes the provided function for each page of results. If the function returns
gonamo/table.go:174
MethodSendMessage
SendMessage sends the payload provided as a JSON string to the deviceIds.
push/push.go:8
MethodSendMessage
SendMessage sends a JSON payload to the specified DeviceIds through the GCM service.
push/android-pusher.go:28
MethodSendMessage
SendMessage sends a JSON payload to the specified DeviceIds through the APNS service.
push/ios-pusher.go:42
FunctionTestAttributeDefinition
(t *testing.T)
gonamo/util_test.go:70
FunctionTestAttributeValue
(t *testing.T)
gonamo/util_test.go:29
FunctionTestAuthenticate
(t *testing.T)
auth/auth_test.go:49
FunctionTestAwsStringOrNil
(t *testing.T)
gonamo/util_test.go:7
FunctionTestBeforeMidnight
(t *testing.T)
today/today_test.go:8
FunctionTestCache_Delete
(t *testing.T)
cache/cache_test.go:44
FunctionTestCache_GetString
(t *testing.T)
cache/cache_test.go:34
FunctionTestCache_GetString_DeletedKey
(t *testing.T)
cache/cache_test.go:58
FunctionTestCache_Lock
(t *testing.T)
cache/cache_test.go:66
FunctionTestCache_PutString
(t *testing.T)
cache/cache_test.go:24
FunctionTestCache_Unlock
(t *testing.T)
cache/cache_test.go:97
FunctionTestCreateTableIfNecessary
(t *testing.T)
gonamo/table_test.go:80
FunctionTestDefaultOptions
(t *testing.T)
gonamo/options_test.go:7
FunctionTestDescribe
(t *testing.T)
gonamo/table_test.go:110
FunctionTestEnvService_Get
(t *testing.T)
env/env_test.go:8
FunctionTestError
(t *testing.T)
log/log_test.go:26
FunctionTestErrorf
(t *testing.T)
log/log_test.go:31
FunctionTestFileStore_LoadAndSave
(t *testing.T)
storage/storage_test.go:25
FunctionTestFileStore_path
(t *testing.T)
storage/storage_test.go:59
FunctionTestFrom
(t *testing.T)
milliseconds/milliseconds_test.go:8
FunctionTestGenerateToken
(t *testing.T)
auth/authentication-token-pair_test.go:7
FunctionTestGetIdentifierForAccessToken_BadToken
(t *testing.T)
auth/auth_test.go:146
FunctionTestGetIdentifierForAccessToken_HappyPath
(t *testing.T)
auth/auth_test.go:121
FunctionTestGetIdentifierForRefreshToken_BadToken
(t *testing.T)
auth/auth_test.go:177
FunctionTestGetIdentifierForRefreshToken_HappyPath
(t *testing.T)
auth/auth_test.go:152
FunctionTestHasParam
(t *testing.T)
router/router_test.go:38
FunctionTestHashKeyDefinitionHasRange
(t *testing.T)
gonamo/key_provider_test.go:40
FunctionTestHashKeyDefinitionHashName
(t *testing.T)
gonamo/key_provider_test.go:7
FunctionTestHashKeyDefinitionHashType
(t *testing.T)
gonamo/key_provider_test.go:23
FunctionTestHashKeyDefinitionRangeName
(t *testing.T)
gonamo/key_provider_test.go:48
FunctionTestHashKeyDefinitionRangeType
(t *testing.T)
gonamo/key_provider_test.go:56
FunctionTestHashPassword
(t *testing.T)
auth/auth_test.go:30
FunctionTestHashRangeKeyDefinitionHasRange
(t *testing.T)
gonamo/key_provider_test.go:97
FunctionTestHashRangeKeyDefinitionHashName
(t *testing.T)
gonamo/key_provider_test.go:64
FunctionTestHashRangeKeyDefinitionHashType
(t *testing.T)
gonamo/key_provider_test.go:80
FunctionTestHashRangeKeyDefinitionRangeName
(t *testing.T)
gonamo/key_provider_test.go:105
FunctionTestHashRangeKeyDefinitionRangeType
(t *testing.T)
gonamo/key_provider_test.go:121
FunctionTestInfo
(t *testing.T)
log/log_test.go:16
FunctionTestInfof
(t *testing.T)
log/log_test.go:21
FunctionTestInstallPreCommitHook
(t *testing.T)
git/git_test.go:7
FunctionTestInt
(t *testing.T)
contains/contains_test.go:7
FunctionTestIntSliceToStringSlice
(t *testing.T)
convert/convert_test.go:33
FunctionTestInts
(t *testing.T)
unique/unique_test.go:7
FunctionTestKeySchemaElement
(t *testing.T)
gonamo/util_test.go:95
FunctionTestLogger_Print
NOTE: Currently we just call the methods and ensure nothing blows up. Don't have a way to actually test that it's logging anything. TODO: Add mocking
log/log_test.go:11
FunctionTestNew
(t *testing.T)
cache/cache_test.go:17
FunctionTestNewFileStore
(t *testing.T)
storage/storage_test.go:12
FunctionTestNewTable
(t *testing.T)
gonamo/table_test.go:22
FunctionTestNow
(t *testing.T)
milliseconds/milliseconds_test.go:15
FunctionTestParam
(t *testing.T)
router/router_test.go:10
FunctionTestPrintStack
(t *testing.T)
log/log_test.go:36
FunctionTestRefresh_HappyPath
(t *testing.T)
auth/auth_test.go:73
FunctionTestRefresh_InvalidTokens
(t *testing.T)
auth/auth_test.go:104
FunctionTestRegister
TODO: These tests are almost certainly prone to race conditions.
job/job_test.go:9
FunctionTestSetCache
--------------------------------------------------
auth/auth_test.go:26
FunctionTestSliceToStringSlice
(t *testing.T)
convert/convert_test.go:48
FunctionTestStop
(t *testing.T)
job/job_test.go:52
FunctionTestStringSliceToIntSlice
(t *testing.T)
convert/convert_test.go:7
FunctionTestUint
(t *testing.T)
contains/contains_test.go:21
FunctionTest_Read
(t *testing.T)
clipboard/clipboard_test.go:8
← previousnext →101–200 of 206, ranked by callers