Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KyleBanks/go-kit
/ functions
Functions
206 in github.com/KyleBanks/go-kit
⨍
Functions
206
◇
Types & classes
30
↓ 1 callers
Method
start
start begins the execution of the Job's function. Note: It is unsafe to call `start` more than once!
job/job.go:30
↓ 1 callers
Function
testHashKey
(t *testing.T, tbl *Table, k keyProvider)
gonamo/table_test.go:166
↓ 1 callers
Function
testRangeKey
(t *testing.T, tbl *Table, k keyProvider)
gonamo/table_test.go:174
Method
Attributes
()
gonamo/persistable_test.go:17
Method
AutoMigrate
AutoMigrate performs database migration for all Model types provided.
orm/orm.go:55
Method
BatchDelete
BatchDelete performs a batch of delete requests, one for each of the Persistables provided.
gonamo/table.go:145
Method
BatchWrite
BatchWrite handles paging and sending a batch write against a single table.
gonamo/table.go:159
Method
Begin
Begin starts a new database transaction.
orm/orm.go:71
Method
Delete
Delete removes an item from the cache by it's key.
cache/cache.go:119
Method
DeleteItem
DeleteItem deletes the item identified by the provided hash and (optional) range key.
gonamo/table.go:135
Method
Exec
Exec performs a raw SQL query against the underlying database.
orm/orm.go:66
Method
Expire
(key string, seconds time.Duration)
cache/cache.go:46
Method
Expire
Expire sets the time for a key to expire in seconds.
cache/cache.go:130
Method
Find
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
Method
FindAllByHash
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
Method
GetMarshaled
(key string, v interface{})
cache/cache.go:43
Method
GetMarshaled
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
Method
GetMarshaled
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
Method
HashKey
()
gonamo/persistable_test.go:9
Method
HashedPassword
()
auth/auth_test.go:20
Method
Last
Last returns the last model (ordered by ID) that matches the specified query.
orm/orm.go:101
Method
Lock
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
Method
Lock
Lock attempts to put a lock on the key for a specified duration (in milliseconds).
cache/mock.go:106
Method
ModelWithID
ModelWithID returns an instance of the specified model with the given ID.
orm/orm.go:106
Function
NewAndroidPusher
NewAndroidPusher returns an AndroidPusher, initialized with the specified GCM API key.
push/android-pusher.go:19
Function
NewIosPusher
NewIosPusher returns an IosPusher, initialized with the specified certificate and key files.
push/ios-pusher.go:30
Function
NewLogger
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
Function
NewMock
NewMock instantiates and returns a new Mock cache.
cache/mock.go:20
Method
Open
Open creates a database connection, or returns an existing one if present.
orm/orm.go:33
Method
PutItem
PutItem performs an insert into DynamoDB.
gonamo/table.go:125
Method
PutMarshaled
(key string, value interface{})
cache/cache.go:42
Method
PutMarshaled
PutMarshaled stores a json marshalled value with the given key.
cache/cache.go:89
Method
PutMarshaled
PutMarshaled stores a json marshalled value with the given key.
cache/mock.go:54
Method
RangeKey
()
gonamo/persistable_test.go:13
Function
Register
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
Method
Save
Save updates a model with the given attributes.
orm/orm.go:86
Method
ScanAll
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
Method
SendMessage
SendMessage sends the payload provided as a JSON string to the deviceIds.
push/push.go:8
Method
SendMessage
SendMessage sends a JSON payload to the specified DeviceIds through the GCM service.
push/android-pusher.go:28
Method
SendMessage
SendMessage sends a JSON payload to the specified DeviceIds through the APNS service.
push/ios-pusher.go:42
Function
TestAttributeDefinition
(t *testing.T)
gonamo/util_test.go:70
Function
TestAttributeValue
(t *testing.T)
gonamo/util_test.go:29
Function
TestAuthenticate
(t *testing.T)
auth/auth_test.go:49
Function
TestAwsStringOrNil
(t *testing.T)
gonamo/util_test.go:7
Function
TestBeforeMidnight
(t *testing.T)
today/today_test.go:8
Function
TestCache_Delete
(t *testing.T)
cache/cache_test.go:44
Function
TestCache_GetString
(t *testing.T)
cache/cache_test.go:34
Function
TestCache_GetString_DeletedKey
(t *testing.T)
cache/cache_test.go:58
Function
TestCache_Lock
(t *testing.T)
cache/cache_test.go:66
Function
TestCache_PutString
(t *testing.T)
cache/cache_test.go:24
Function
TestCache_Unlock
(t *testing.T)
cache/cache_test.go:97
Function
TestCreateTableIfNecessary
(t *testing.T)
gonamo/table_test.go:80
Function
TestDefaultOptions
(t *testing.T)
gonamo/options_test.go:7
Function
TestDescribe
(t *testing.T)
gonamo/table_test.go:110
Function
TestEnvService_Get
(t *testing.T)
env/env_test.go:8
Function
TestError
(t *testing.T)
log/log_test.go:26
Function
TestErrorf
(t *testing.T)
log/log_test.go:31
Function
TestFileStore_LoadAndSave
(t *testing.T)
storage/storage_test.go:25
Function
TestFileStore_path
(t *testing.T)
storage/storage_test.go:59
Function
TestFrom
(t *testing.T)
milliseconds/milliseconds_test.go:8
Function
TestGenerateToken
(t *testing.T)
auth/authentication-token-pair_test.go:7
Function
TestGetIdentifierForAccessToken_BadToken
(t *testing.T)
auth/auth_test.go:146
Function
TestGetIdentifierForAccessToken_HappyPath
(t *testing.T)
auth/auth_test.go:121
Function
TestGetIdentifierForRefreshToken_BadToken
(t *testing.T)
auth/auth_test.go:177
Function
TestGetIdentifierForRefreshToken_HappyPath
(t *testing.T)
auth/auth_test.go:152
Function
TestHasParam
(t *testing.T)
router/router_test.go:38
Function
TestHashKeyDefinitionHasRange
(t *testing.T)
gonamo/key_provider_test.go:40
Function
TestHashKeyDefinitionHashName
(t *testing.T)
gonamo/key_provider_test.go:7
Function
TestHashKeyDefinitionHashType
(t *testing.T)
gonamo/key_provider_test.go:23
Function
TestHashKeyDefinitionRangeName
(t *testing.T)
gonamo/key_provider_test.go:48
Function
TestHashKeyDefinitionRangeType
(t *testing.T)
gonamo/key_provider_test.go:56
Function
TestHashPassword
(t *testing.T)
auth/auth_test.go:30
Function
TestHashRangeKeyDefinitionHasRange
(t *testing.T)
gonamo/key_provider_test.go:97
Function
TestHashRangeKeyDefinitionHashName
(t *testing.T)
gonamo/key_provider_test.go:64
Function
TestHashRangeKeyDefinitionHashType
(t *testing.T)
gonamo/key_provider_test.go:80
Function
TestHashRangeKeyDefinitionRangeName
(t *testing.T)
gonamo/key_provider_test.go:105
Function
TestHashRangeKeyDefinitionRangeType
(t *testing.T)
gonamo/key_provider_test.go:121
Function
TestInfo
(t *testing.T)
log/log_test.go:16
Function
TestInfof
(t *testing.T)
log/log_test.go:21
Function
TestInstallPreCommitHook
(t *testing.T)
git/git_test.go:7
Function
TestInt
(t *testing.T)
contains/contains_test.go:7
Function
TestIntSliceToStringSlice
(t *testing.T)
convert/convert_test.go:33
Function
TestInts
(t *testing.T)
unique/unique_test.go:7
Function
TestKeySchemaElement
(t *testing.T)
gonamo/util_test.go:95
Function
TestLogger_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
Function
TestNew
(t *testing.T)
cache/cache_test.go:17
Function
TestNewFileStore
(t *testing.T)
storage/storage_test.go:12
Function
TestNewTable
(t *testing.T)
gonamo/table_test.go:22
Function
TestNow
(t *testing.T)
milliseconds/milliseconds_test.go:15
Function
TestParam
(t *testing.T)
router/router_test.go:10
Function
TestPrintStack
(t *testing.T)
log/log_test.go:36
Function
TestRefresh_HappyPath
(t *testing.T)
auth/auth_test.go:73
Function
TestRefresh_InvalidTokens
(t *testing.T)
auth/auth_test.go:104
Function
TestRegister
TODO: These tests are almost certainly prone to race conditions.
job/job_test.go:9
Function
TestSetCache
--------------------------------------------------
auth/auth_test.go:26
Function
TestSliceToStringSlice
(t *testing.T)
convert/convert_test.go:48
Function
TestStop
(t *testing.T)
job/job_test.go:52
Function
TestStringSliceToIntSlice
(t *testing.T)
convert/convert_test.go:7
Function
TestUint
(t *testing.T)
contains/contains_test.go:21
Function
Test_Read
(t *testing.T)
clipboard/clipboard_test.go:8
← previous
next →
101–200 of 206, ranked by callers