Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aeolyus/gull
/ functions
Functions
28 in github.com/aeolyus/gull
⨍
Functions
28
◇
Types & classes
3
↓ 6 callers
Function
appendText
(str, color = "")
public/index.js:95
↓ 5 callers
Function
setup
Initialize an in-memory database for testing
handlers/handlers_test.go:15
↓ 5 callers
Function
teardown
Discard the in-memory database
handlers/handlers_test.go:22
↓ 4 callers
Method
Initialize
Initialize initializes the app, connects to database, and does auto migration
handlers/handlers.go:29
↓ 3 callers
Function
IsValidAlias
IsValidAlias tests whether a string is in the alphanumeric charset
utils/utils.go:61
↓ 2 callers
Function
IsValidURL
IsValidURL checks if string is a valid url
utils/utils.go:55
↓ 2 callers
Function
RandString
RandString generates a random alphanumeric string of given length
utils/utils.go:67
↓ 1 callers
Function
clear
()
public/index.js:105
↓ 1 callers
Function
copyToClip
(str)
public/index.js:110
↓ 1 callers
Function
isValidAlias
(str)
public/index.js:90
↓ 1 callers
Function
isValidURL
(str)
public/index.js:85
↓ 1 callers
Function
randStringWithCharset
(length int, charset string)
utils/utils.go:71
↓ 1 callers
Function
sendReq
()
public/index.js:65
Method
CreateShortURL
CreateShortURL will take a url and shorten it with an (custom) alias
handlers/handlers.go:62
Method
GetURL
GetURL takes a shortlink and redirects the user to the relevant link if it exists
handlers/handlers.go:50
Method
ListAll
ListAll returns a JSON response of all the url entries in the database
handlers/handlers.go:41
Function
TestCorruptCreate
(t *testing.T)
handlers/handlers_test.go:117
Function
TestCreate
(t *testing.T)
handlers/handlers_test.go:26
Function
TestFailDBBadDriver
(t *testing.T)
handlers/handlers_test.go:231
Function
TestFailDBBadURI
(t *testing.T)
handlers/handlers_test.go:241
Function
TestGetURL
(t *testing.T)
handlers/handlers_test.go:139
Function
TestInvalidCreate
(t *testing.T)
handlers/handlers_test.go:73
Function
TestIsValidAlias
(t *testing.T)
utils/utils_test.go:7
Function
TestIsValidURL
(t *testing.T)
utils/utils_test.go:38
Function
TestListAll
(t *testing.T)
handlers/handlers_test.go:187
Function
TestRandString
For the code coverage why not
utils/utils_test.go:122
Function
main
()
server.go:23
Function
shorten
(event)
public/index.js:51