Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abishekmuthian/open-payment-host
/ functions
Functions
1,100 in github.com/abishekmuthian/open-payment-host
⨍
Functions
1,100
◇
Types & classes
194
↓ 2 callers
Method
Style
Style returns true if this file is a CSS file
src/lib/assets/file.go:42
↓ 2 callers
Method
StyleName
StyleName returns a fingerprinted group name for styles
src/lib/assets/group.go:176
↓ 2 callers
Method
Table
Queryable interface Table returns the table name for this object
src/lib/resource/resource.go:38
↓ 2 callers
Function
Time
Time returns a formatted time string given a time and optional format
src/lib/view/helpers/helpers.go:108
↓ 2 callers
Method
Update
Update this model object, called from actions.
src/lib/query/query_test.go:42
↓ 2 callers
Method
UpdateURL
UpdateURL returns the update url for this model /table/id/update
src/lib/resource/urls.go:18
↓ 2 callers
Method
UserID
for role check
src/lib/auth/can/can.go:10
↓ 2 callers
Function
ValidateMap
ValidateMap returns the map value of the JSON string
src/lib/resource/validate.go:140
↓ 2 callers
Method
Values
(values map[string]interface{})
src/lib/mux/log/log.go:85
↓ 2 callers
Function
Where
Where returns a new query for products with the format and arguments supplied.
src/products/query.go:172
↓ 2 callers
Function
add
add adds this ability
src/lib/auth/can/ability.go:33
↓ 2 callers
Function
addCacheControl
(w http.ResponseWriter, r *http.Request)
src/app/handlers.go:117
↓ 2 callers
Function
basePath
This file contains some test helpers for resources. basePath returns the path to the fragmenta root from a given test folder.
src/lib/resource/testing.go:25
↓ 2 callers
Function
configPath
()
src/app/bootstrap.go:64
↓ 2 callers
Function
createOrImportListener
(addr string)
src/lib/server/server.go:74
↓ 2 callers
Function
decodeBase64
decodeBase64 decodes a value using base64.
src/lib/auth/encode.go:64
↓ 2 callers
Function
displayPaymentResults
(status)
src/subscriptions/assets/scripts/square_script.js:56
↓ 2 callers
Function
encodeBase64
encodeBase64 encodes a value using base64.
src/lib/auth/encode.go:57
↓ 2 callers
Function
forkChild
(addr string, ln net.Listener)
src/lib/server/server.go:103
↓ 2 callers
Function
logWithColor
logWithColor formats the log string with color depending on the arguments
src/lib/mux/middleware/logrequest/middleware.go:143
↓ 2 callers
Function
newCodeResponseWriter
newCodeResponseWriter initialises a codeResponseWriter
src/lib/mux/middleware/logrequest/middleware.go:133
↓ 2 callers
Method
next
* next -- get the next character, excluding comments. peek() is used to see if a '/' is followed by a '/' or '*'. */
src/lib/assets/internal/jsmin/jsmin.go:121
↓ 2 callers
Function
productAmount
()
src/app/assets/scripts/app.js:223
↓ 2 callers
Function
productTitle
()
src/app/assets/scripts/app.js:205
↓ 2 callers
Function
purgeUsers
purgeUsers clears the users list of users who last acted PurgeInterval ago
src/lib/stats/stats.go:135
↓ 2 callers
Function
razorpayKeyID
()
src/app/assets/scripts/app.js:277
↓ 2 callers
Function
refute
(t *testing.T, a interface{}, b interface{})
src/lib/mandrill/mandrill_test.go:18
↓ 2 callers
Function
requestCacheKey
Return a key suitable for storing this request in our cache. NB: To avoid allocations we do not include every permutation in the cache so routes retur
src/lib/mux/mux.go:170
↓ 2 callers
Function
safeXORBytes
safeXORBytes is from https://golang.org/src/crypto/cipher/xor.go.
src/lib/auth/auth.go:147
↓ 2 callers
Method
sendApiRequest
(data interface{}, path string)
src/lib/mandrill/mandrill.go:307
↓ 2 callers
Method
sendMessagePayload
(data interface{}, path string)
src/lib/mandrill/mandrill.go:288
↓ 2 callers
Function
sendToAyrShare
sendToAyrShare sends the message to AyrShare
src/products/actions/social.go:156
↓ 2 callers
Function
storyHasUserVote
storyHasUserVote returns true if we already have a vote for this story from this user
src/products/actions/vote.go:232
↓ 2 callers
Function
watchProcess
watchProcess initialises OS signal and fork process
src/lib/server/server.go:266
↓ 2 callers
Function
writeJSON
(w http.ResponseWriter, v interface{}, err error)
src/subscriptions/checkout.go:253
↓ 2 callers
Method
writeLog
Log events to the server log file and other output
src/lib/server/log/deprecated.go:72
↓ 1 callers
Function
ActivateBurgerMenu
()
src/app/assets/scripts/app.js:28
↓ 1 callers
Function
ActivateFilterFields
()
src/app/assets/scripts/app.js:130
↓ 1 callers
Function
ActivateForms
()
src/app/assets/scripts/app.js:113
↓ 1 callers
Function
ActivateHTMX
()
src/app/assets/scripts/app.js:315
↓ 1 callers
Function
ActivateManageBilling
()
src/app/assets/scripts/app.js:161
↓ 1 callers
Function
ActivateMethodLinks
()
src/app/assets/scripts/app.js:42
↓ 1 callers
Function
ActivateShowlinks
()
src/app/assets/scripts/app.js:141
↓ 1 callers
Method
AddAsset
AddAsset adds this asset to the group
src/lib/assets/group.go:152
↓ 1 callers
Method
Allow
Allow returns an error if the action is not allowed, or nil if it is
src/lib/auth/can/ability.go:48
↓ 1 callers
Function
AllowedParamsAdmin
AllowedParamsAdmin returns the cols editable by admins
src/users/query.go:27
↓ 1 callers
Function
AuthenticityToken
AuthenticityToken returns a new token for a request, and if necessary sets the cookie with our secret.
src/lib/auth/auth.go:37
↓ 1 callers
Function
Bootstrap
Bootstrap generates missing config files, sql migrations, and runs the first migrations For this we need to know what to call the app, but we default
src/app/bootstrap.go:39
↓ 1 callers
Function
BytesToHex
BytesToHex converts bytes to a hex string representation of bytes
src/lib/auth/encode.go:23
↓ 1 callers
Method
CanDownvote
CanDownvote returns true if this user can downvote.
src/users/vote.go:31
↓ 1 callers
Method
CanFlag
CanFlag returns true if this user can flag.
src/users/vote.go:41
↓ 1 callers
Method
CanParseFile
Can this parser handle this file?
src/lib/view/parser/parser.go:13
↓ 1 callers
Method
CanUpvote
CanUpvote returns true if this user can upvote.
src/users/vote.go:26
↓ 1 callers
Function
CancelPaypalSubscription
(subscriptionId string)
src/subscriptions/paypal.go:564
↓ 1 callers
Function
CancelRazorpaySubscription
(subscriptionId string)
src/subscriptions/razorpay.go:137
↓ 1 callers
Method
CheckOwner
CheckOwner returns true if this ability should check ownership
src/lib/auth/can/ability.go:79
↓ 1 callers
Function
CheckRandomToken
CheckRandomToken performs a comparison of two tokens resistant to timing attacks.
src/lib/auth/random.go:27
↓ 1 callers
Method
Clear
(http.ResponseWriter)
src/lib/auth/session.go:52
↓ 1 callers
Function
ClearSession
ClearSession clears the current session cookie
src/lib/auth/session.go:94
↓ 1 callers
Function
ClearSessionStorage
()
src/app/assets/scripts/app.js:304
↓ 1 callers
Method
ConfigBool
ConfigBool returns the current configuration value as bool (yes=true, no=false), or false if no value
src/lib/server/deprecated.go:103
↓ 1 callers
Method
Configuration
Configuration returns the map of configuration keys to values
src/lib/server/deprecated.go:77
↓ 1 callers
Method
CreateBatch
CreateBatch creates a batch attached to the db to add points to
src/lib/mux/log/adapters/influx/influx.go:161
↓ 1 callers
Function
CreateCard
CreateCard creates a card with the customer
src/subscriptions/square.go:372
↓ 1 callers
Function
CreateCustomer
CreateCustomer creates a customer
src/subscriptions/square.go:285
↓ 1 callers
Method
CreatePoint
CreatePoint creates a batch point for influx from a set of values If you need more control you can create points and use WriteBatch
src/lib/mux/log/adapters/influx/influx.go:110
↓ 1 callers
Function
CreateSubscription
CreateSubscription creates a subscription for the user
src/subscriptions/square.go:502
↓ 1 callers
Method
Error
Error returns the underling error string - it should not be shown in production
src/lib/server/errors.go:21
↓ 1 callers
Method
Exec
Exec - use this for non-select statements
src/lib/query/adapters/database_mysql.go:94
↓ 1 callers
Method
Exec
Exec - use this for non-select statements
src/lib/query/adapters/database_sqlite.go:86
↓ 1 callers
Method
FileName
FileName is the file friendly version of the product name
src/products/story.go:142
↓ 1 callers
Method
Finalize
Called after parsing is finished
src/lib/view/parser/template.go:17
↓ 1 callers
Function
Find
Find fetches a single subscription record from the database by id.
src/subscriptions/query.go:75
↓ 1 callers
Function
FindCustomerId
Find fetches a single subscription record from the database by user id.
src/subscriptions/query.go:108
↓ 1 callers
Function
FindFirst
FindFirst fetches a single story record from the database using a where query with the format and args provided.
src/products/query.go:103
↓ 1 callers
Function
FindPayerEmail
Find fetches a single subscription record from the database by payer email.
src/subscriptions/query.go:119
↓ 1 callers
Function
FindPaypalPlanId
FindPaypalPlanId fetches a single story record from the database by paypal plan id
src/products/query.go:121
↓ 1 callers
Function
FindSquarePlanId
FindSquarePlanId fetches a single story record from the database by square plan id
src/products/query.go:132
↓ 1 callers
Function
GenerateSignature
GenerateSignature generates a signature for the given payload and secret.
src/subscriptions/sendWebhook.go:53
↓ 1 callers
Method
GetDate
GetDate returns the first value associated with a given key as a time, using the given time format.
src/lib/mux/params.go:270
↓ 1 callers
Method
GetFloat
GetFloat returns the first value associated with the key as an integer. If there is no value or a parse error, it returns 0.0
src/lib/mux/params.go:352
↓ 1 callers
Method
GetFloats
GetFloats returns all values associated with the key as an array of floats.
src/lib/mux/params.go:365
↓ 1 callers
Method
GetHashTag
GetHashTag gives the hashtags in the name
src/products/story.go:147
↓ 1 callers
Method
GetInts
GetInts returns all values associated with the key as an array of integers.
src/lib/mux/params.go:292
↓ 1 callers
Method
GetIntsString
GetIntsString returns all values associated with the key as a comma separated string.
src/lib/mux/params.go:331
↓ 1 callers
Method
GetStrings
GetStrings returns all string values associated with this key if there are no values associated an empty array is returned
src/lib/mux/params.go:263
↓ 1 callers
Function
GetTrendingStory
getTrendingStory returns a story with most number of views in past 30 days except meta stories
src/products/query.go:182
↓ 1 callers
Method
GetUniqueInts
GetUniqueInts returns all unique non-zero int values associated with the given key as an array of integers
src/lib/mux/params.go:308
↓ 1 callers
Method
Handle
Handle calls the handler with the writer and request.
src/lib/mux/route.go:57
↓ 1 callers
Function
HandleCreate
HandleCreate handles the POST of the create form for products
src/products/actions/create.go:78
↓ 1 callers
Function
HandleCreateAdminUser
HandleCreateAdminUser creates the user
src/users/actions/create.go:13
↓ 1 callers
Function
HandleIndex
HandleIndex displays a list of users.
src/users/actions/index.go:16
↓ 1 callers
Function
HandleIndex
HandleIndex repsponds to GET /stories
src/products/actions/index.go:23
↓ 1 callers
Function
HandleLogin
HandleLogin responds to POST /users/login by setting a cookie on the request with encrypted user data.
src/users/actions/login.go:58
↓ 1 callers
Function
HandleShow
HandleShow displays a single user.
src/users/actions/show.go:19
↓ 1 callers
Function
HandleShow
HandleShow displays a single story.
src/products/actions/show.go:30
↓ 1 callers
Function
HandleUpdate
HandleUpdate updates the user
src/users/actions/update.go:11
↓ 1 callers
Function
HandleUpdate
HandleUpdate handles the POST of the form to update a story
src/products/actions/update.go:220
↓ 1 callers
Function
HandleUserCount
HandleUserCount serves a get request at /stats/users/count
src/lib/stats/stats.go:112
↓ 1 callers
Method
InsertSQL
Return extra SQL for insert statement (see psql)
src/lib/query/adapters/database.go:26
← previous
next →
301–400 of 1,100, ranked by callers