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
↓ 11 callers
Method
hashName
hashName returns the name of the Hash portion of the table's Key.
gonamo/key_provider.go:7
↓ 10 callers
Method
hashType
hashType returns the type of the Hash portion of the table's Key.
gonamo/key_provider.go:9
↓ 10 callers
Method
rangeName
rangeName returns the name of the Range portion of the table's Key, if applicable.
gonamo/key_provider.go:15
↓ 9 callers
Function
AttributeValue
AttributeValue initializes and returns an AttributeValue based on the attributeType provided.
gonamo/util.go:23
↓ 9 callers
Method
rangeType
rangeType returns the type of the Range portion of the table's Key, if applicable.
gonamo/key_provider.go:18
↓ 8 callers
Method
hasRange
hasRange returns a boolean indicating if the table has a Range key.
gonamo/key_provider.go:12
↓ 7 callers
Function
HashPassword
HashPassword returns a hashed version of the plain-text password provided.
auth/auth.go:30
↓ 7 callers
Method
Lock
(key, value string, timeoutMs int)
cache/cache.go:48
↓ 7 callers
Function
New
New instantiates and returns a new Cache.
cache/cache.go:58
↓ 7 callers
Function
Param
Param returns a POST/GET parameter from the request. If the parameter is found in the POST and the GET parameter set, the POST parameter will be give
router/router.go:53
↓ 6 callers
Function
HasParam
HasParam returns a boolean indicating if the request has a particular parameter.
router/router.go:65
↓ 6 callers
Method
Unlock
(key, value string)
cache/cache.go:49
↓ 5 callers
Function
Authenticate
Authenticate validates an Authenticator based on it's password hash and the plain-text password provided.
auth/auth.go:41
↓ 5 callers
Method
Delete
(key string)
cache/cache.go:45
↓ 5 callers
Method
GetString
(key string)
cache/cache.go:40
↓ 4 callers
Function
AwsStringOrNil
AwsStringOrNil returns an aws.String string pointer, or nil if the provided string is empty.
gonamo/util.go:14
↓ 4 callers
Function
Get
Get returns the current environment that the go application is running in, based on the environment variable. If no environment variable is found, or
env/env.go:29
↓ 4 callers
Method
Identifier
()
auth/auth_test.go:17
↓ 4 callers
Method
PutString
(key string, value string)
cache/cache.go:39
↓ 4 callers
Function
dateAndTimeStamp
dateAndTimeStamp returns a formatted date/time stamp for the current time.
log/log.go:69
↓ 4 callers
Function
fileAndLineNumber
fileAndLineNumber returns the file and line number of the code that called `log`.
log/log.go:59
↓ 4 callers
Method
path
CacheDir returns the cache path for the current platform.
storage/storage.go:63
↓ 3 callers
Method
CreateTableIfNecessary
CreateTableIfNecessary attempts to determine if a table already exists, and if not, will create the table. The boolean returned will be true if the t
gonamo/table.go:59
↓ 3 callers
Method
Describe
Describe returns the DynamoDB Table description.
gonamo/table.go:71
↓ 3 callers
Method
GetString
GetString returns the string value stored with the given key. If the key doesn't exist, an error is returned.
cache/mock.go:40
↓ 3 callers
Function
Info
Info outputs to stdout.
log/log.go:32
↓ 3 callers
Function
Int
Int returns true if the slice of ints contains the value provided.
contains/contains.go:6
↓ 3 callers
Function
Ints
Ints returns a unique subset of the int slice provided.
unique/unique.go:5
↓ 3 callers
Function
NewFileStore
NewFileStore returns an initialized FileStore.
storage/storage.go:19
↓ 3 callers
Function
NewTable
NewTable intializes and returns a Table. Providing the optional Options allows you to further configure the table, and the client used to communicate
gonamo/table.go:30
↓ 3 callers
Function
ReadString
ReadString returns the current contents of the system clipboard as a string.
clipboard/clipboard.go:32
↓ 3 callers
Function
Register
Register schedules a function for execution, to be invoked repeated with a delay of the value of i. If the runImmediately parameter is true, the func
job/job.go:60
↓ 3 callers
Function
SliceToStringSlice
SliceToStringSlice converts a slice into a slice of their string representations.
convert/convert.go:51
↓ 3 callers
Function
StringSliceToIntSlice
StringSliceToIntSlice accepts a slice of strings and returns a slice of parsed ints. If any of the strings cannot be parsed to an integer, an error w
convert/convert.go:13
↓ 3 callers
Function
Uint
Uint returns true if the slice of uints contains the value provided.
contains/contains.go:16
↓ 3 callers
Function
attributeDefinition
attributeDefinition initializes and returns an AttributeDefition.
gonamo/util.go:55
↓ 3 callers
Function
getAccessTokenCacheKey
getAccessTokenCacheKey returns the access token cache key.
auth/auth.go:110
↓ 3 callers
Function
getRefreshToAccessTokenCacheKey
getRefreshToAccessTokenCacheKey returns the refresh -> access token cache key.
auth/auth.go:120
↓ 3 callers
Function
getRefreshTokenCacheKey
getRefreshTokenCacheKey returns the refresh token cache key.
auth/auth.go:115
↓ 3 callers
Function
keySchemaElement
keySchemaElement initializes and returns a KeySchemaElement.
gonamo/util.go:63
↓ 3 callers
Function
newTableName
()
gonamo/table_test.go:161
↓ 2 callers
Method
Delete
Delete removes an item from the mock by it's key.
cache/mock.go:85
↓ 2 callers
Function
Error
Error outputs to stderr.
log/log.go:43
↓ 2 callers
Function
Errorf
Errorf outputs a formatted error to stderr.
log/log.go:48
↓ 2 callers
Function
From
From converts a Time to milliseconds since epoch.
milliseconds/milliseconds.go:8
↓ 2 callers
Function
GenerateToken
GenerateToken returns a new AuthenticationTokenPair
auth/authentication-token-pair.go:14
↓ 2 callers
Function
GetIdentifierForAccessToken
GetIdentifierForAccessToken returns a user's identifier, as returned by the Authenticator interface, if it exists in the cache. If the identifier doe
auth/auth.go:70
↓ 2 callers
Function
GetIdentifierForRefreshToken
GetIdentifierForRefreshToken returns a user's identifier, as returned by the Authenticator interface, if it exists in the cahce. If the identifier do
auth/auth.go:78
↓ 2 callers
Method
Identifier
()
auth/auth.go:20
↓ 2 callers
Function
Infof
Infof outputs a formatted string to stdout.
log/log.go:37
↓ 2 callers
Function
IntSliceToStringSlice
IntSliceToStringSlice converts a slice of ints to a slice of strings.
convert/convert.go:29
↓ 2 callers
Method
Load
Load attempts to read and decode the storage file into the value provided.
storage/storage.go:28
↓ 2 callers
Method
Print
Println is a wrapper for the Info log method. This is used for passing the Logger around as a LogWriter interface.
log/log.go:27
↓ 2 callers
Method
PutString
PutString stores a simple key-value pair in the mock.
cache/mock.go:28
↓ 2 callers
Function
Read
Read returns the current contents of the system clipboard.
clipboard/clipboard.go:20
↓ 2 callers
Function
Refresh
Refresh generates a new token pair for a given authenticator.
auth/auth.go:52
↓ 2 callers
Method
Stop
Stop halts the execution of the Job's function.
job/job.go:23
↓ 2 callers
Function
Write
Write stores the contents of the reader provided in the system clipboard.
clipboard/clipboard.go:47
↓ 2 callers
Method
batch
batch executes a batch of writes/deletes on the underlying DynamoDB Table. The batch is executed in pages if necessary, ensuring the DynamoDB batch s
gonamo/table.go:214
↓ 2 callers
Function
defaultOptions
defaultOptions returns a DynamoOptions struct containing sensible defaults for all values.
gonamo/options.go:12
↓ 2 callers
Function
flattenAttributeMap
flattenAttributeMap takes a DynamoDB attribute map and flattens it into a map[string]interface{}.
gonamo/util.go:71
↓ 2 callers
Function
flattenAttributeMaps
flattenAttributeMaps takes a slice of DynamoDB attribute maps and flattens them into a slice of map[string]interface{}.
gonamo/util.go:100
↓ 2 callers
Function
generateAndStoreTokens
generateAndStoreTokens creates and caches a new AuthenticationTokenPair.
auth/auth.go:83
↓ 2 callers
Method
hasRange
()
gonamo/key_provider.go:36
↓ 2 callers
Method
hasRange
()
gonamo/key_provider.go:66
↓ 2 callers
Method
hashName
()
gonamo/key_provider.go:28
↓ 2 callers
Method
hashName
()
gonamo/key_provider.go:58
↓ 2 callers
Method
hashType
()
gonamo/key_provider.go:32
↓ 2 callers
Method
hashType
()
gonamo/key_provider.go:62
↓ 2 callers
Method
keyAttributeMap
KeyAttributeMap returns an AttributeMap containing the Persistable's keys.
gonamo/table.go:244
↓ 2 callers
Method
makePath
makePath attempts to create the neccessary directories to the Filestore cache file location.
storage/storage.go:58
↓ 2 callers
Method
rangeName
()
gonamo/key_provider.go:40
↓ 2 callers
Method
rangeName
()
gonamo/key_provider.go:70
↓ 2 callers
Method
rangeType
()
gonamo/key_provider.go:44
↓ 2 callers
Method
rangeType
()
gonamo/key_provider.go:74
↓ 1 callers
Method
Attributes
Attributes returns all attributes (including Hash and Range keys) and their type for the persistable model.
gonamo/persistable.go:14
↓ 1 callers
Function
BeforeMidnight
BeforeMidnight returns the current date with time set to directly before midnight. For example, 2016-06-24 11:59:59.999
today/today.go:10
↓ 1 callers
Method
Create
Create inserts a new model instance into the database.
orm/orm.go:81
↓ 1 callers
Method
Expire
Expire sets the time for a key to expire in seconds.
cache/mock.go:95
↓ 1 callers
Method
First
First returns the first model (ordered by ID) that matches the specified query.
orm/orm.go:96
↓ 1 callers
Method
GetString
GetString returns the string value stored with the given key. If the key doesn't exist, an error is returned.
cache/cache.go:81
↓ 1 callers
Method
HandleFunc
(string, func(http.ResponseWriter, *http.Request))
router/router.go:16
↓ 1 callers
Method
HashKey
HashKey returns the value of the Hash key used to represent this individual entity.
gonamo/persistable.go:6
↓ 1 callers
Method
HashedPassword
Identifier returns a unique reference to this user.
auth/auth.go:21
↓ 1 callers
Function
InstallPreCommitHook
InstallPreCommitHook takes a string to set as the pre-commit git hook for the .git directory specified by the path provided. The path should be to th
git/git.go:19
↓ 1 callers
Method
Model
Model specifies the domain model that subsequent queries will be run against.
orm/orm.go:91
↓ 1 callers
Method
ModelExistsWithID
ModelExistsWithID returns a boolean indicating if an instance of the specified model exists with a given ID.
orm/orm.go:126
↓ 1 callers
Function
New
New returns a timer that can be used to measure the duration between the call to New() and the call to the function returned by new. For example: t
timer/timer.go:17
↓ 1 callers
Function
Now
Now returns the current Time to milliseconds since epoch.
milliseconds/milliseconds.go:13
↓ 1 callers
Function
PrintStack
PrintStack outputs the current go routine's stack trace.
log/log.go:54
↓ 1 callers
Method
PutString
PutString stores a simple key-value pair in the cache.
cache/cache.go:71
↓ 1 callers
Method
RangeKey
RangeKey returns the value of the Range key used to represent this individual entity. If the table has no Range key, this may simply return nil.
gonamo/persistable.go:10
↓ 1 callers
Method
Save
Save attempts to write the value provided out to the storage file.
storage/storage.go:43
↓ 1 callers
Function
SetCache
SetCache sets the Cache to use for authentication tokens.
auth/auth.go:25
↓ 1 callers
Method
Where
Where performs a query with "Where" parameters.
orm/orm.go:76
↓ 1 callers
Function
WriteString
WriteString stores a string in the system clipboard.
clipboard/clipboard.go:68
↓ 1 callers
Function
cacheTokens
cacheTokens stores an access token and refresh token pair for an authenticated User.
auth/auth.go:93
↓ 1 callers
Function
clearCachedTokens
clearCachedTokens clears all tokens associated to a refresh token.
auth/auth.go:125
↓ 1 callers
Method
createTable
createTable creates a Dynamo table using the provided table definition.
gonamo/table.go:185
↓ 1 callers
Function
handleWrapper
handleWrapper returns a request handling function that wraps the provided route.
router/router.go:36
next →
1–100 of 206, ranked by callers