MCPcopy Create free account

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

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

↓ 3 callersMethodGetInt
GetInt returns the current configuration value as int64, or 0 if no value
src/lib/server/config/config.go:90
↓ 3 callersMethodInsert
Insert a record, returning id
src/lib/query/adapters/database.go:23
↓ 3 callersFunctionList
List returns an error if this action is not authorised for this user
src/lib/auth/can/can.go:77
↓ 3 callersMethodMessagesSendTemplate
MessagesSendTemplate sends a message using a Mandrill template
src/lib/mandrill/mandrill.go:262
↓ 3 callersMethodMethods
(...string)
src/lib/mux/mux.go:36
↓ 3 callersFunctionNewWithColumns
NewWithColumns creates a new user instance and fills it with data from the database cols provided.
src/users/query.go:32
↓ 3 callersFunctionNewWithColumns
NewWithColumns creates a new story instance and fills it with data from the database cols provided.
src/products/query.go:34
↓ 3 callersMethodPortString
PortString returns a string port suitable for passing to http.Server
src/lib/server/server.go:261
↓ 3 callersMethodProduction
()
src/lib/server/schedule/context.go:11
↓ 3 callersMethodPut
()
src/lib/mux/mux.go:34
↓ 3 callersMethodSQLDB
()
src/lib/query/adapters/database.go:16
↓ 3 callersMethodScript
Script returns true if this file is a js file
src/lib/assets/file.go:47
↓ 3 callersFunctionScriptLink
ScriptLink returns an html tag for a given file path
src/lib/assets/helpers.go:73
↓ 3 callersMethodStart
Start starts an http server on the given port
src/lib/server/server.go:278
↓ 3 callersMethodString
String returns a string formatting for the request id.
src/lib/server/log/middleware.go:18
↓ 3 callersFunctionStyleLink
StyleLink returns an html tag for a given file path
src/lib/assets/helpers.go:65
↓ 3 callersMethodUpdateAll
UpdateAll updates all models specified in this relation
src/lib/query/query.go:213
↓ 3 callersFunctionValidateNestedMap
ValidateNestedMap returns the nested map value of the JSON string
src/lib/resource/validate.go:152
↓ 3 callersFunctionaddStoryVote
addStoryVote adjusts the story points, and adds a vote record for this user
src/products/actions/vote.go:179
↓ 3 callersFunctionadjustUserPoints
removeUserPoints removes these points from this user
src/products/actions/vote.go:205
↓ 3 callersFunctionbytesHash
bytesHash returns the sha hash of some bytes
src/lib/assets/assets.go:242
↓ 3 callersFunctionclearSession
clearSession clears the request session cookie entirely. If an error is encountered in processing params, the session is cleared.
src/lib/session/session.go:58
↓ 3 callersFunctiondotFile
PATH UTILITIES dotFile returns true if the file path supplied a dot file?
src/lib/view/parser/scanner.go:194
↓ 3 callersMethodgenerateHash
Utility method to generate a hash from string
src/lib/view/parser/template.go:169
↓ 3 callersFunctiongetUserIP
(r *http.Request)
src/products/actions/vote.go:271
↓ 3 callersMethodperformExec
performExec executes Query SQL on the given sqlDB with no rows returned, just result
src/lib/query/adapters/database.go:128
↓ 3 callersMethodperformQuery
performQuery executes Query SQL on the given sqlDB and return the rows. NB caller must call use defer rows.Close() with rows returned
src/lib/query/adapters/database.go:99
↓ 3 callersFunctionproductsXMLPath
storiesXMLPath returns the xml path for a given request to a stories link
src/products/actions/index.go:127
↓ 3 callersMethodsetDefaultTemplates
Set sensible default layout/template paths after we know our path pages => pages/views/index.html.got pages/create => pages/views/create.html.got page
src/lib/view/render.go:330
↓ 3 callersFunctionsortedParamKeys
Sorts the param names given - map iteration order is explicitly random in Go but we need params in a defined order to avoid unexpected results.
src/lib/query/query.go:741
↓ 3 callersFunctionsuffixes
suffixes returns true if the path has these suffixes (ignoring dotfiles)?
src/lib/view/parser/scanner.go:207
↓ 3 callersFunctionupdateproductsRank
updateproductsRank updates the rank of all products with a rank based on their point score / time elapsed (as represented by id) to the power of gra
src/products/actions/vote.go:297
↓ 3 callersFunctionvaluesFromParams
Generate a set of values for the params in order
src/lib/query/query.go:754
↓ 2 callersMethodAddRecipient
AddRecipient appends a recipient to the message easier than message.To = []*To{&To{email, name}}
src/lib/mandrill/mandrill.go:332
↓ 2 callersFunctionAddSubscribers
AddSubscribers adds subscribers to the product
src/subscriptions/stripe.go:146
↓ 2 callersFunctionAllowedParamsAdmin
AllowedParamsAdmin returns the cols editable by admins
src/products/query.go:29
↓ 2 callersMethodCanonicalURL
CanonicalURL is the canonical URL of the story on this site including a slug for seo
src/products/story.go:137
↓ 2 callersFunctionCloseDatabase
CloseDatabase closes the database opened by OpenDatabase
src/lib/query/database.go:122
↓ 2 callersMethodCode
Code returns true if this is a link to a git repository At present we only check for github urls, we should at least check for bitbucket
src/products/story.go:157
↓ 2 callersMethodCompleteURL
CompleteURL returns combination of protocol, root url and destination url
src/products/story.go:113
↓ 2 callersMethodConfiguration
Configuration returns all the configuration key/values for a given mode.
src/lib/server/config/config.go:77
↓ 2 callersMethodConfiguredTLSServer
ConfiguredTLSServer returns a TLS server instance with a secure config this server has read/write timeouts set to 20 seconds, prefers server cipher su
src/lib/server/server.go:392
↓ 2 callersFunctionConvertLinks
ConvertLinks returns the text with various transformations applied - bare links are turned into anchor tags, and @refs are turned into user links. thi
src/lib/text/text.go:56
↓ 2 callersFunctionConvertMapToVariablesForRecipient
ConvertMapToVariablesForRecipient converts a regular string/string map into the RcptMergeVars struct
src/lib/mandrill/mandrill.go:368
↓ 2 callersFunctionConvertNewlines
ConvertNewlines converts \n to paragraph tags if the text already contains paragraph tags, return unaltered
src/lib/text/text.go:39
↓ 2 callersFunctionCountHashTag
CountHashTag returns the number of hashtag in the string
src/products/actions/create.go:463
↓ 2 callersMethodCreate
Create a model object, called from actions.
src/lib/query/query_test.go:35
↓ 2 callersFunctionCreateMAC
CreateMAC creates a MAC.
src/lib/auth/encode.go:42
↓ 2 callersFunctionCreateSubscriptionPlan
CreateSubscriptionPlan creates a subscription plan for square
src/products/actions/create.go:472
↓ 2 callersMethodCreateURL
CreateURL returns the create url for this model /table/create
src/lib/resource/urls.go:13
↓ 2 callersMethodDebugString
DebugString returns a query representation string useful for debugging
src/lib/query/query.go:673
↓ 2 callersFunctionDefaultHelpers
DefaultHelpers returns a default set of helpers for the app, which can then be extended/replaced. Helper functions may not be changed after LoadTempla
src/lib/view/view.go:38
↓ 2 callersMethodDestinationURL
DestinationURL returns the URL of the story if no url is set, it uses the CanonicalURL
src/products/story.go:99
↓ 2 callersMethodDestroyURL
DestroyURL returns the destroy url for this model /table/id/destroy
src/lib/resource/urls.go:23
↓ 2 callersFunctionEncrypt
Encrypt encrypts data using 256-bit AES-GCM. This both hides the content of the data and provides a check that it hasn't been altered. Output takes t
src/lib/auth/encrypt.go:30
↓ 2 callersFunctionEscapeURL
EscapeURL escapes URLs using HTMLEscapeString
src/lib/view/helpers/html.go:28
↓ 2 callersMethodFetchOrCreateGroup
FetchOrCreateGroup returns the named group if it exists, or creates it if not
src/lib/assets/assets.go:57
↓ 2 callersFunctionFindFirst
FindFirst fetches a single user record from the database using a where query with the format and args provided.
src/users/query.go:61
↓ 2 callersFunctionGet
Get returns the translation for a given language and key if no result, it falls back to DefaultLanguage + key
src/lib/view/translation/translation.go:73
↓ 2 callersMethodGetBool
GetBool returns the current configuration value as bool (yes=true, no=false), or false if no value
src/lib/server/config/config.go:103
↓ 2 callersFunctionGetPaypalSubscriptionTransaction
GetPaypalSubscriptionTransaction fetches the paypal transaction details given the transaction id and access token
src/subscriptions/paypal.go:523
↓ 2 callersMethodGroup
Group returns the named group if it exists or an empty group if not
src/lib/assets/assets.go:47
↓ 2 callersFunctionHandleCreateShow
HandleCreateShow serves the create form via GET for products.
src/products/actions/create.go:32
↓ 2 callersFunctionHandleDestroy
HandleDestroy responds to /users/n/destroy by deleting the user.
src/users/actions/destroy.go:15
↓ 2 callersFunctionHandleDestroy
HandleDestroy responds to /products/n/destroy by deleting the story.
src/products/actions/destroy.go:15
↓ 2 callersFunctionHandleLoginShow
HandleLoginShow shows the page at /users/login
src/users/actions/login.go:25
↓ 2 callersFunctionHandleLogout
HandleLogout clears the current user's session /users/logout
src/users/actions/logout.go:13
↓ 2 callersFunctionHandleUpdateShow
HandleUpdateShow renders the form to update a story.
src/products/actions/update.go:44
↓ 2 callersMethodInsertJoins
InsertJoins using an array of ids (more general version of above) This inserts joins for every possible relation between the ids
src/lib/query/query.go:110
↓ 2 callersFunctionLoadTemplates
LoadTemplates loads our templates from ./src, and assigns them to the package variable Templates This function is deprecated and will be removed, use
src/lib/view/view.go:31
↓ 2 callersMethodLogf
Logf logs the message with the given arguments to our internal logger
src/lib/server/deprecated.go:21
↓ 2 callersMethodMatchMethod
MatchMethod returns true if our list of methods contains method
src/lib/mux/route.go:62
↓ 2 callersMethodMode
Deprecated - this config parsing (mostly internal to the server anyway) has been moved to a new file and will be removed in 2.0 Instead of passing con
src/lib/server/deprecated.go:59
↓ 2 callersMethodNameDisplay
NameDisplay returns a title string without hashtags (assumed to be at the end), by truncating the title at the first #
src/products/story.go:207
↓ 2 callersFunctionNew
New returns a new email with the default tenplates and the given recipient.
src/lib/mail/email.go:18
↓ 2 callersFunctionNew
New returns a new sendgrid Service.
src/lib/mail/adapters/sendgrid/sendgrid.go:19
↓ 2 callersFunctionNewFile
NewFile creates a new file logger for the given path at Level Info.
src/lib/server/log/file.go:23
↓ 2 callersFunctionOptions
Options returns an array of statuses for a status select.
src/lib/status/status.go:28
↓ 2 callersFunctionPagesNewWithColumns
NewWithColumns creates a new page instance and fills it with data from the database cols provided
src/lib/query/query_test.go:53
↓ 2 callersMethodPlaceholder
A format string for the arg placeholder
src/lib/query/adapters/database.go:29
↓ 2 callersMethodPrimaryKey
PrimaryKey returns the id for primary key by default - used by query
src/lib/resource/resource.go:43
↓ 2 callersMethodPrimaryURL
PrimaryURL returns the URL to use for this story in lists Videos and Show Ask products link to the story for other links for now it is the destination
src/products/story.go:126
↓ 2 callersMethodQuery
Query creates a new query relation referencing this specific resource by id.
src/lib/resource/query.go:10
↓ 2 callersFunctionReloadTemplates
ReloadTemplates reloads the templates for our scanner
src/lib/view/view.go:141
↓ 2 callersFunctionRemoveHashTag
RemoveHashTag removes hashtag from the string and returns the string
src/products/actions/create.go:454
↓ 2 callersFunctionRenderTemplate
RenderTemplate renders the email into its template with context.
src/lib/mail/mail.go:52
↓ 2 callersFunctionResizeImage
ResizeImage resizes the given image IF it is larger than maxWidth or maxHeight
src/lib/model/file/image.go:113
↓ 2 callersMethodRows
Rows executes the query against the database, and return the sql rows result for this query (Executes SQL)
src/lib/query/query.go:314
↓ 2 callersFunctionSanitizeName
SanitizeName makes a string safe to use in a file name by first finding the path basename, then replacing non-ascii characters.
src/lib/model/file/sanitize.go:14
↓ 2 callersMethodScanPaths
ScanPaths resets template list and rescans all template paths
src/lib/view/parser/scanner.go:152
↓ 2 callersMethodScriptName
ScriptName returns a fingerprinted group name for scripts
src/lib/assets/group.go:186
↓ 2 callersMethodSelectName
()
src/lib/view/helpers/forms.go:98
↓ 2 callersMethodSend
(email *Email)
src/lib/mail/mail.go:19
↓ 2 callersMethodSetup
Setup is called once on setup of a parser
src/lib/view/parser/parser.go:10
↓ 2 callersFunctionSetupAuthorisation
SetupAuthorisation sets up mock authorisation.
src/lib/resource/testing.go:35
↓ 2 callersFunctionSetupView
SetupView sets up the view package for testing by loading templates.
src/lib/resource/testing.go:101
↓ 2 callersFunctionShow
Show returns an error if this action is not authorised for this user
src/lib/auth/can/can.go:82
↓ 2 callersMethodSource
Source the parsed version of this template
src/lib/view/parser/template.go:113
↓ 2 callersMethodStatusOptions
StatusOptions returns an array of statuses for a status select for this resource.
src/lib/status/status.go:46
↓ 2 callersMethodString
String returns the route formatted as a string
src/lib/mux/route.go:133
← previousnext →201–300 of 1,100, ranked by callers