MCPcopy Create free account

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

Functions206 in github.com/KyleBanks/go-kit

↓ 11 callersMethodhashName
hashName returns the name of the Hash portion of the table's Key.
gonamo/key_provider.go:7
↓ 10 callersMethodhashType
hashType returns the type of the Hash portion of the table's Key.
gonamo/key_provider.go:9
↓ 10 callersMethodrangeName
rangeName returns the name of the Range portion of the table's Key, if applicable.
gonamo/key_provider.go:15
↓ 9 callersFunctionAttributeValue
AttributeValue initializes and returns an AttributeValue based on the attributeType provided.
gonamo/util.go:23
↓ 9 callersMethodrangeType
rangeType returns the type of the Range portion of the table's Key, if applicable.
gonamo/key_provider.go:18
↓ 8 callersMethodhasRange
hasRange returns a boolean indicating if the table has a Range key.
gonamo/key_provider.go:12
↓ 7 callersFunctionHashPassword
HashPassword returns a hashed version of the plain-text password provided.
auth/auth.go:30
↓ 7 callersMethodLock
(key, value string, timeoutMs int)
cache/cache.go:48
↓ 7 callersFunctionNew
New instantiates and returns a new Cache.
cache/cache.go:58
↓ 7 callersFunctionParam
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 callersFunctionHasParam
HasParam returns a boolean indicating if the request has a particular parameter.
router/router.go:65
↓ 6 callersMethodUnlock
(key, value string)
cache/cache.go:49
↓ 5 callersFunctionAuthenticate
Authenticate validates an Authenticator based on it's password hash and the plain-text password provided.
auth/auth.go:41
↓ 5 callersMethodDelete
(key string)
cache/cache.go:45
↓ 5 callersMethodGetString
(key string)
cache/cache.go:40
↓ 4 callersFunctionAwsStringOrNil
AwsStringOrNil returns an aws.String string pointer, or nil if the provided string is empty.
gonamo/util.go:14
↓ 4 callersFunctionGet
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 callersMethodIdentifier
()
auth/auth_test.go:17
↓ 4 callersMethodPutString
(key string, value string)
cache/cache.go:39
↓ 4 callersFunctiondateAndTimeStamp
dateAndTimeStamp returns a formatted date/time stamp for the current time.
log/log.go:69
↓ 4 callersFunctionfileAndLineNumber
fileAndLineNumber returns the file and line number of the code that called `log`.
log/log.go:59
↓ 4 callersMethodpath
CacheDir returns the cache path for the current platform.
storage/storage.go:63
↓ 3 callersMethodCreateTableIfNecessary
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 callersMethodDescribe
Describe returns the DynamoDB Table description.
gonamo/table.go:71
↓ 3 callersMethodGetString
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 callersFunctionInfo
Info outputs to stdout.
log/log.go:32
↓ 3 callersFunctionInt
Int returns true if the slice of ints contains the value provided.
contains/contains.go:6
↓ 3 callersFunctionInts
Ints returns a unique subset of the int slice provided.
unique/unique.go:5
↓ 3 callersFunctionNewFileStore
NewFileStore returns an initialized FileStore.
storage/storage.go:19
↓ 3 callersFunctionNewTable
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 callersFunctionReadString
ReadString returns the current contents of the system clipboard as a string.
clipboard/clipboard.go:32
↓ 3 callersFunctionRegister
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 callersFunctionSliceToStringSlice
SliceToStringSlice converts a slice into a slice of their string representations.
convert/convert.go:51
↓ 3 callersFunctionStringSliceToIntSlice
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 callersFunctionUint
Uint returns true if the slice of uints contains the value provided.
contains/contains.go:16
↓ 3 callersFunctionattributeDefinition
attributeDefinition initializes and returns an AttributeDefition.
gonamo/util.go:55
↓ 3 callersFunctiongetAccessTokenCacheKey
getAccessTokenCacheKey returns the access token cache key.
auth/auth.go:110
↓ 3 callersFunctiongetRefreshToAccessTokenCacheKey
getRefreshToAccessTokenCacheKey returns the refresh -> access token cache key.
auth/auth.go:120
↓ 3 callersFunctiongetRefreshTokenCacheKey
getRefreshTokenCacheKey returns the refresh token cache key.
auth/auth.go:115
↓ 3 callersFunctionkeySchemaElement
keySchemaElement initializes and returns a KeySchemaElement.
gonamo/util.go:63
↓ 3 callersFunctionnewTableName
()
gonamo/table_test.go:161
↓ 2 callersMethodDelete
Delete removes an item from the mock by it's key.
cache/mock.go:85
↓ 2 callersFunctionError
Error outputs to stderr.
log/log.go:43
↓ 2 callersFunctionErrorf
Errorf outputs a formatted error to stderr.
log/log.go:48
↓ 2 callersFunctionFrom
From converts a Time to milliseconds since epoch.
milliseconds/milliseconds.go:8
↓ 2 callersFunctionGenerateToken
GenerateToken returns a new AuthenticationTokenPair
auth/authentication-token-pair.go:14
↓ 2 callersFunctionGetIdentifierForAccessToken
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 callersFunctionGetIdentifierForRefreshToken
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 callersMethodIdentifier
()
auth/auth.go:20
↓ 2 callersFunctionInfof
Infof outputs a formatted string to stdout.
log/log.go:37
↓ 2 callersFunctionIntSliceToStringSlice
IntSliceToStringSlice converts a slice of ints to a slice of strings.
convert/convert.go:29
↓ 2 callersMethodLoad
Load attempts to read and decode the storage file into the value provided.
storage/storage.go:28
↓ 2 callersMethodPrint
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 callersMethodPutString
PutString stores a simple key-value pair in the mock.
cache/mock.go:28
↓ 2 callersFunctionRead
Read returns the current contents of the system clipboard.
clipboard/clipboard.go:20
↓ 2 callersFunctionRefresh
Refresh generates a new token pair for a given authenticator.
auth/auth.go:52
↓ 2 callersMethodStop
Stop halts the execution of the Job's function.
job/job.go:23
↓ 2 callersFunctionWrite
Write stores the contents of the reader provided in the system clipboard.
clipboard/clipboard.go:47
↓ 2 callersMethodbatch
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 callersFunctiondefaultOptions
defaultOptions returns a DynamoOptions struct containing sensible defaults for all values.
gonamo/options.go:12
↓ 2 callersFunctionflattenAttributeMap
flattenAttributeMap takes a DynamoDB attribute map and flattens it into a map[string]interface{}.
gonamo/util.go:71
↓ 2 callersFunctionflattenAttributeMaps
flattenAttributeMaps takes a slice of DynamoDB attribute maps and flattens them into a slice of map[string]interface{}.
gonamo/util.go:100
↓ 2 callersFunctiongenerateAndStoreTokens
generateAndStoreTokens creates and caches a new AuthenticationTokenPair.
auth/auth.go:83
↓ 2 callersMethodhasRange
()
gonamo/key_provider.go:36
↓ 2 callersMethodhasRange
()
gonamo/key_provider.go:66
↓ 2 callersMethodhashName
()
gonamo/key_provider.go:28
↓ 2 callersMethodhashName
()
gonamo/key_provider.go:58
↓ 2 callersMethodhashType
()
gonamo/key_provider.go:32
↓ 2 callersMethodhashType
()
gonamo/key_provider.go:62
↓ 2 callersMethodkeyAttributeMap
KeyAttributeMap returns an AttributeMap containing the Persistable's keys.
gonamo/table.go:244
↓ 2 callersMethodmakePath
makePath attempts to create the neccessary directories to the Filestore cache file location.
storage/storage.go:58
↓ 2 callersMethodrangeName
()
gonamo/key_provider.go:40
↓ 2 callersMethodrangeName
()
gonamo/key_provider.go:70
↓ 2 callersMethodrangeType
()
gonamo/key_provider.go:44
↓ 2 callersMethodrangeType
()
gonamo/key_provider.go:74
↓ 1 callersMethodAttributes
Attributes returns all attributes (including Hash and Range keys) and their type for the persistable model.
gonamo/persistable.go:14
↓ 1 callersFunctionBeforeMidnight
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 callersMethodCreate
Create inserts a new model instance into the database.
orm/orm.go:81
↓ 1 callersMethodExpire
Expire sets the time for a key to expire in seconds.
cache/mock.go:95
↓ 1 callersMethodFirst
First returns the first model (ordered by ID) that matches the specified query.
orm/orm.go:96
↓ 1 callersMethodGetString
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 callersMethodHandleFunc
(string, func(http.ResponseWriter, *http.Request))
router/router.go:16
↓ 1 callersMethodHashKey
HashKey returns the value of the Hash key used to represent this individual entity.
gonamo/persistable.go:6
↓ 1 callersMethodHashedPassword
Identifier returns a unique reference to this user.
auth/auth.go:21
↓ 1 callersFunctionInstallPreCommitHook
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 callersMethodModel
Model specifies the domain model that subsequent queries will be run against.
orm/orm.go:91
↓ 1 callersMethodModelExistsWithID
ModelExistsWithID returns a boolean indicating if an instance of the specified model exists with a given ID.
orm/orm.go:126
↓ 1 callersFunctionNew
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 callersFunctionNow
Now returns the current Time to milliseconds since epoch.
milliseconds/milliseconds.go:13
↓ 1 callersFunctionPrintStack
PrintStack outputs the current go routine's stack trace.
log/log.go:54
↓ 1 callersMethodPutString
PutString stores a simple key-value pair in the cache.
cache/cache.go:71
↓ 1 callersMethodRangeKey
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 callersMethodSave
Save attempts to write the value provided out to the storage file.
storage/storage.go:43
↓ 1 callersFunctionSetCache
SetCache sets the Cache to use for authentication tokens.
auth/auth.go:25
↓ 1 callersMethodWhere
Where performs a query with "Where" parameters.
orm/orm.go:76
↓ 1 callersFunctionWriteString
WriteString stores a string in the system clipboard.
clipboard/clipboard.go:68
↓ 1 callersFunctioncacheTokens
cacheTokens stores an access token and refresh token pair for an authenticated User.
auth/auth.go:93
↓ 1 callersFunctionclearCachedTokens
clearCachedTokens clears all tokens associated to a refresh token.
auth/auth.go:125
↓ 1 callersMethodcreateTable
createTable creates a Dynamo table using the provided table definition.
gonamo/table.go:185
↓ 1 callersFunctionhandleWrapper
handleWrapper returns a request handling function that wraps the provided route.
router/router.go:36
next →1–100 of 206, ranked by callers