Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/connorads/lockbot
/ functions
Functions
38 in github.com/connorads/lockbot
⨍
Functions
38
◇
Types & classes
18
↓ 49 callers
Function
execute
( input: string, params?: { user?: string; channel?: string; team?: string } )
test/lock-bot.test.ts:16
↓ 13 callers
Method
delete
(resource: string, channel: string, team: string)
src/lock-bot.ts:4
↓ 5 callers
Method
getOwner
( resource: string, channel: string, team: string )
src/lock-bot.ts:9
↓ 4 callers
Function
getFirstParam
(commandText: string)
src/handlers/slack/command-parsers.ts:8
↓ 4 callers
Function
handleCommand
( getResponse: (command: SlashCommand) => Promise<Response> )
src/handlers/slack/handle-command.ts:47
↓ 3 callers
Function
recreateAccessTokenTable
( accessTokenTableName: string )
test/utils.ts:35
↓ 2 callers
Function
createToken
(user: string)
test/api.test.ts:24
↓ 2 callers
Method
getAll
( channel: string, team: string )
src/lock-bot.ts:5
↓ 2 callers
Function
parseUnlock
( commandText: string )
src/handlers/slack/command-parsers.ts:1
↓ 2 callers
Function
recreateResourcesTable
(resourcesTableName: string)
test/utils.ts:8
↓ 2 callers
Function
runAllTests
()
test/lock-bot.test.ts:15
↓ 2 callers
Function
runAllTests
()
test/token-authorizer.test.ts:8
↓ 2 callers
Method
setOwner
( resource: string, owner: string, channel: string, team: string, metadata?: Record<string
src/lock-bot.ts:14
↓ 1 callers
Function
generateToken
()
src/token-authorizer.ts:4
↓ 1 callers
Method
getAccessToken
( user: string, channel: string, team: string )
src/token-authorizer.ts:18
↓ 1 callers
Function
getResponseType
(destination: Destination)
src/handlers/slack/handle-command.ts:9
↓ 1 callers
Function
handleResponse
( response: Promise<Response>, respond: RespondFn, logger: Logger )
src/handlers/slack/handle-command.ts:22
↓ 1 callers
Method
putAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/token-authorizer.ts:12
Function
authorizer
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:31
Function
bodyValidator
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:52
Method
constructor
(private readonly tokenRepo: AccessTokenRepo)
src/token-authorizer.ts:26
Method
constructor
( private readonly lockRepo: LockRepo, private readonly tokenAuthorizer: TokenAuthorizer )
src/lock-bot.ts:31
Method
constructor
( private readonly documentClient: DocumentClient, private readonly resourcesTableName: string )
src/storage/dynamodb-lock-repo.ts:5
Method
constructor
( private readonly documentClient: DocumentClient, private readonly accessTokenTableName: string )
src/storage/dynamodb-token-repo.ts:5
Method
delete
(resource: string, channel: string, team: string)
src/storage/dynamodb-lock-repo.ts:10
Method
delete
(resource: string, channel: string, team: string)
src/storage/in-memory-lock-repo.ts:21
Method
getAccessToken
( user: string, channel: string, team: string )
src/storage/dynamodb-token-repo.ts:28
Method
getAccessToken
( user: string, channel: string, team: string )
src/storage/in-memory-token-repo.ts:24
Method
getAll
( channel: string, team: string )
src/storage/dynamodb-lock-repo.ts:19
Method
getAll
( channel: string, team: string )
src/storage/in-memory-lock-repo.ts:25
Method
getOwner
( resource: string, channel: string, team: string )
src/storage/dynamodb-lock-repo.ts:40
Method
getOwner
( resource: string, channel: string, team: string )
src/storage/in-memory-lock-repo.ts:43
Function
handleErrors
( err: ExpressError, req: Request, res: Response, // eslint-disable-next-line @typescript-eslint/no-un
src/handlers/api/middleware.ts:12
Function
paramsValidator
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:67
Method
putAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/storage/dynamodb-token-repo.ts:10
Method
putAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/storage/in-memory-token-repo.ts:12
Method
setOwner
( resource: string, owner: string, channel: string, team: string, metadata?: Record<string
src/storage/dynamodb-lock-repo.ts:54
Method
setOwner
( resource: string, owner: string, channel: string, team: string )
src/storage/in-memory-lock-repo.ts:52