MCPcopy Create free account

hub / github.com/abishekmuthian/open-payment-host / functions

Functions1,100 in github.com/abishekmuthian/open-payment-host

↓ 1 callersMethodInvalid
Invalid returns true if this email is not ready to send.
src/lib/mail/email.go:33
↓ 1 callersFunctionIsPayPalOrderValid
IsPaypalOrderValid checks if the give paypal order id is valid and was updated with last 1 hour
src/subscriptions/paypal.go:378
↓ 1 callersFunctionIsPaypalSubscriptionValid
(transactionId string)
src/subscriptions/paypal.go:447
↓ 1 callersMethodLevelColor
LevelColor returns the human-readable colour for this level.
src/lib/server/log/default.go:122
↓ 1 callersMethodLevelName
LevelName returns the human-readable name for this level.
src/lib/server/log/default.go:117
↓ 1 callersFunctionListSubscriptions
Subscribed returns true or false depending upon when the user has subscribed to the product FIXME: Sqlite3 doesn't have Any * func Subscribed(productI
src/subscriptions/stripe.go:172
↓ 1 callersFunctionLoad
Load scans the path for translation lang.json files if called twice the second translations will overwrite any common keys
src/lib/view/translation/translation.go:37
↓ 1 callersMethodLoad
Load the session from cookie.
src/lib/auth/session.go:119
↓ 1 callersMethodLocalPath
LocalPath returns the relative path of this file
src/lib/assets/file.go:98
↓ 1 callersMethodLog
(V)
src/lib/server/log/log.go:123
↓ 1 callersMethodLogf
Logf logs the given message and arguments using our logger
src/lib/server/schedule/context.go:39
↓ 1 callersFunctionMapToRecipientVars
MapToRecipientVars converts a regular string/string map into the RcptMergeVars struct Alias of `ConvertMapToVariablesForRecipient`
src/lib/mandrill/mandrill.go:374
↓ 1 callersFunctionMapToVars
MapToVars converts a regular string/string map into the Variable struct Alias of `ConvertMapToVariables`
src/lib/mandrill/mandrill.go:363
↓ 1 callersFunctionMarkup
Markup converts text from projects into sanitized html
src/lib/helpers/helpers.go:21
↓ 1 callersMethodMatch
Match finds the route (if any) which matches this request
src/lib/mux/mux.go:130
↓ 1 callersMethodMatch
Match returns true if this route matches the path given.
src/lib/mux/route.go:84
↓ 1 callersMethodMatchMaybe
MatchMaybe returns false if the path definitely is not MatchMethod or true/maybe if it *may* match.
src/lib/mux/route.go:79
↓ 1 callersFunctionMetaHashTag
MetaHashTag removes #from hashtag and returns a single string formatted for meta Keywords
src/products/actions/show.go:436
↓ 1 callersFunctionMiddleware
Middleware adds a logging wrapper and request tracing to requests.
src/lib/server/log/middleware.go:55
↓ 1 callersFunctionMinify
(css []byte)
src/lib/assets/internal/cssmin/cssmin.go:62
↓ 1 callersFunctionMinify
Minify returns a minified script or an error.
src/lib/assets/internal/jsmin/jsmin.go:334
↓ 1 callersFunctionNew
New returns a new assets.Collection
src/lib/assets/assets.go:26
↓ 1 callersFunctionNew
New creates a new server instance
src/lib/server/server.go:223
↓ 1 callersFunctionNewFile
NewFile returns a new file object
src/lib/assets/file.go:23
↓ 1 callersFunctionNewNaiveRoute
NewNaiveRoute creates a new Route, given a pattern to match and a handler for the route.
src/lib/mux/route.go:17
↓ 1 callersFunctionNewPrefixRoute
NewPrefixRoute creates a new PrefixRoute, given a pattern to match and a handler for the route.
src/lib/mux/route.go:24
↓ 1 callersFunctionNewRenderer
NewRenderer returns a new renderer for this request.
src/lib/view/render.go:61
↓ 1 callersFunctionNewScanner
NewScanner creates a new template scanner
src/lib/view/parser/scanner.go:31
↓ 1 callersMethodNewTemplate
Parse the file given and return a compiled template
src/lib/view/parser/parser.go:16
↓ 1 callersFunctionNonceToken
NonceToken returns a nonce token for a request, and if necessary sets the cookie with our nonce Set the authenticity token as well if available
src/lib/auth/auth.go:60
↓ 1 callersFunctionNumberToCommas
NumberToCommas formats large numbers with commas the entire number is still represented
src/lib/view/helpers/maths.go:91
↓ 1 callersMethodOrWhere
OrWhere defines a where clause on SQL - Additional calls add WHERE () OR () clauses
src/lib/query/query.go:553
↓ 1 callersMethodOwnedBy
(int64)
src/lib/auth/can/can.go:15
↓ 1 callersFunctionPagesNew
New initialises and returns a new Page
src/lib/query/query_test.go:81
↓ 1 callersFunctionParamsWithMux
ParamsWithMux returns params for a given mux and request
src/lib/mux/params.go:23
↓ 1 callersMethodParseFile
ParseFile adds this asset to our list of files, along with a fingerprint based on the content
src/lib/assets/group.go:158
↓ 1 callersMethodPath
()
src/lib/view/deprecated.go:10
↓ 1 callersMethodPattern
Pattern returns the string pattern for the route
src/lib/mux/route.go:128
↓ 1 callersFunctionPopular
Popular returns a query for all products with points over a certain threshold
src/products/query.go:162
↓ 1 callersMethodPort
Port returns the port of the server
src/lib/server/server.go:256
↓ 1 callersFunctionPrintTemplates
PrintTemplates prints out our list of templates for debug
src/lib/view/view.go:148
↓ 1 callersFunctionPrintf
Printf prints to the printLogs
src/lib/mux/log/log.go:37
↓ 1 callersMethodPrintf
Printf logs events selectively given our filter
src/lib/server/log/deprecated.go:59
↓ 1 callersMethodProduction
Production returns true if we are running in a production environment
src/lib/server/schedule/schedule.go:15
↓ 1 callersFunctionPublished
Published returns a query for all users with status >= published.
src/users/query.go:108
↓ 1 callersFunctionPublished
Published returns a query for all products with status >= published.
src/products/query.go:177
↓ 1 callersFunctionRedirectStatus
RedirectStatus redirects setting the status code (for example unauthorized) We don't accept external or relative paths for security reasons
src/lib/server/redirects.go:19
↓ 1 callersFunctionRemoveAccents
RemoveAccents replaces a set of accented characters with ascii equivalents.
src/lib/model/file/sanitize.go:131
↓ 1 callersMethodRemoveFiles
RemoveFiles removes old compiled files for this group from dst
src/lib/assets/group.go:57
↓ 1 callersFunctionRemoveSubscribers
RemoveSubscribers removes subscribers to the product
src/subscriptions/stripe.go:152
↓ 1 callersMethodRenderContext
()
src/lib/view/deprecated.go:11
↓ 1 callersMethodRenderToString
RenderToString renders our template into layout using our context and return a string
src/lib/view/render.go:171
↓ 1 callersMethodRenderToStringWithLayout
FIXME - test for side-effects then replace RenderToString with the layout version as a bug fix RenderToStringWithLayout renders our template into layo
src/lib/view/render.go:198
↓ 1 callersFunctionRequiresBootStrap
RequiresBootStrap returns true if the app requires bootstrapping
src/app/bootstrap.go:57
↓ 1 callersMethodResourceID
for ownership check, passed a UserID
src/lib/auth/can/can.go:16
↓ 1 callersMethodResultIDs
ResultIDs returns an array of ids as the result of a query FIXME - this should really use the query primary key, not "id" hardcoded
src/lib/query/query.go:424
↓ 1 callersMethodRoleID
()
src/lib/auth/can/can.go:9
↓ 1 callersMethodRoleOptions
RoleOptions returns an array of Role values for this model (embedders may override this and roledisplay to extend)
src/users/role.go:21
↓ 1 callersFunctionRootURL
RootURL returns the root url
src/lib/helpers/helpers.go:16
↓ 1 callersMethodRouteRequest
RouteRequest is the final endpoint of all requests
src/lib/mux/mux.go:110
↓ 1 callersFunctionSanitize
Sanitize the html, leaving only tags we consider safe (see the sanitize package for details and tests)
src/lib/view/helpers/html.go:63
↓ 1 callersFunctionSanitizeString
SanitizeString replaces separators with - and removes characters listed in the regexp provided from string. Accents, spaces, and all characters not in
src/lib/model/file/sanitize.go:34
↓ 1 callersMethodSave
Save the assets to a file after compilation
src/lib/assets/assets.go:91
↓ 1 callersMethodScanPath
ScanPath scans a path for template files, including sub-paths
src/lib/view/parser/scanner.go:43
↓ 1 callersMethodScriptPath
ScriptPath returns a fingerprinted group path for scripts
src/lib/assets/group.go:191
↓ 1 callersMethodScripts
Scripts returns an array of file names for styles
src/lib/assets/group.go:44
↓ 1 callersFunctionSend
Send the email using our default adapter and optional context.
src/lib/mail/mail.go:32
↓ 1 callersFunctionSetMaxOpenConns
SetMaxOpenConns sets the maximum number of open connections
src/lib/query/database.go:133
↓ 1 callersFunctionSetRequestID
SetRequestID saves the request id in the request context.
src/lib/server/log/middleware.go:48
↓ 1 callersMethodSetString
SetString sets this key to this single string value, removing any other entries.
src/lib/mux/params.go:227
↓ 1 callersFunctionSetup
Setup sets up the initial map
src/lib/view/translation/translation.go:27
↓ 1 callersFunctionSetup
Setup sets up our application
src/app/app.go:23
↓ 1 callersMethodSetup
Setup sets up the route from a pattern
src/lib/mux/route.go:46
↓ 1 callersMethodSetup
Setup sets up the pattern prefix for the Prefix route.
src/lib/mux/route.go:244
↓ 1 callersFunctionSetupAssets
SetupAssets compiles or copies our assets from src into the public assets folder.
src/app/view.go:16
↓ 1 callersFunctionSetupAuth
SetupAuth sets up the auth pkg and authorisation for users
src/app/auth.go:13
↓ 1 callersFunctionSetupDatabase
SetupDatabase sets up the db with query given our server config.
src/app/db.go:17
↓ 1 callersFunctionSetupDefaultUser
SetupDefaultUser creates the default user for the application if necessary
src/app/app.go:88
↓ 1 callersFunctionSetupLog
SetupLog sets up logging
src/app/app.go:68
↓ 1 callersFunctionSetupRoutes
SetupRoutes creates a new router and adds the routes for this app to it.
src/app/routes.go:19
↓ 1 callersFunctionSetupServer
SetupServer creates a new server, and delegates setup to the app pkg.
server.go:63
↓ 1 callersFunctionSetupView
SetupView sets up the view package by loadind templates.
src/app/view.go:55
↓ 1 callersFunctionShareproduct
Shareproduct shares the product to social media
src/products/actions/social.go:103
↓ 1 callersMethodShowAsk
ShowAsk returns true if this is a Show: or Ask: story
src/products/story.go:93
↓ 1 callersMethodSortedKeys
SortedKeys returns an array of keys for a map sorted in alpha order, this means we get a predictable order for the map entries when we print. The spec
src/lib/server/log/default.go:129
↓ 1 callersMethodStartTLSAuto
StartTLSAuto starts an https server on the given port by requesting certs from an ACME provider using the http-01 challenge. it also starts a server o
src/lib/server/server.go:346
↓ 1 callersMethodStatusDisplay
StatusDisplay returns a string representation of the model status.
src/lib/status/status.go:51
↓ 1 callersMethodString
String returns a string description of this ability.
src/lib/auth/can/ability.go:93
↓ 1 callersMethodString
String returns a string representation of the model
src/lib/model/model.go:131
↓ 1 callersMethodString
()
src/lib/server/log/log_test.go:21
↓ 1 callersMethodStylePath
StylePath returns a fingerprinted group path for styles
src/lib/assets/group.go:181
↓ 1 callersMethodStyles
Styles returns an array of file names for styles
src/lib/assets/group.go:31
↓ 1 callersFunctionSubscribed
Subscribed returns a query for all users with subscription = True.
src/users/query.go:113
↓ 1 callersMethodText
Text sets the view content as text
src/lib/view/render.go:147
↓ 1 callersMethodTimeString
Convert a time to a string
src/lib/query/adapters/database.go:35
↓ 1 callersFunctionToPlural
ToPlural returns the plural version of an English word using some simple rules and a table of exceptions.
src/lib/query/textual.go:26
↓ 1 callersFunctionToSingular
ToSingular converts a word to singular. NB reversal from plurals may fail
src/lib/query/textual.go:88
↓ 1 callersFunctionToStatusError
ToStatusError returns a *StatusError or wraps a standard error in a 500 StatusError
src/lib/server/errors.go:92
↓ 1 callersFunctionTrace
Trace retreives the request id from a request as a string.
src/lib/server/log/middleware.go:34
↓ 1 callersFunctionTruncateWithEllipsis
TruncateWithEllipsis truncates the given string to length using provided ellipsis.
src/lib/query/textual.go:14
← previousnext →401–500 of 1,100, ranked by callers