MCPcopy Create free account

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

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

↓ 285 callersMethodAddKey
AddKey adds a key/value pair to context
src/lib/view/render.go:159
↓ 271 callersFunctionError
Error sends the key/value map at level Error to all registered loggers.
src/lib/server/log/log.go:51
↓ 254 callersMethodFatalf
Fatalf the message with the given arguments to our internal logger, and then exits with status 1
src/lib/server/deprecated.go:31
↓ 223 callersFunctionInfo
Info sends the key/value map at level Info to all registered loggers.
src/lib/server/log/log.go:45
↓ 197 callersFunctionGet
Get returns a specific value or "" if no value
src/lib/server/config/config.go:128
↓ 167 callersMethodGet
Set accepted methods
src/lib/mux/mux.go:32
↓ 115 callersFunctionInternalError
InternalError returns a new StatusError with Status StatusInternalServerError and optional Title and Message Usage: return router.InternalError(err)
src/lib/server/errors.go:59
↓ 76 callersMethodAdd
Add adds a route for this request with the default methods (GET/HEAD) Route is returned so that method functions can be chained
src/lib/mux/mux.go:207
↓ 71 callersMethodSet
(string, string)
src/lib/auth/session.go:49
↓ 70 callersMethodWhere
Where defines a WHERE clause on SQL - Additional calls add WHERE () AND () clauses
src/lib/query/query.go:530
↓ 57 callersFunctionParams
Params returns a new set of params parsed from the request.
src/lib/mux/params.go:18
↓ 55 callersMethodPost
()
src/lib/mux/mux.go:33
↓ 49 callersMethodString
String returns a string representation of this object
src/lib/assets/file.go:112
↓ 47 callersMethodClose
()
src/lib/query/adapters/database.go:15
↓ 44 callersMethodError
Error returns err.Message
src/lib/mandrill/mandrill.go:208
↓ 44 callersFunctionFind
Find fetches a single story record from the database by id.
src/products/query.go:112
↓ 42 callersMethodget
* get -- return the next character from stdin. Watch out for lookahead. If the character is a control character, translate it to a space or line
src/lib/assets/internal/jsmin/jsmin.go:84
↓ 40 callersFunctionGetBool
GetBool returns the current configuration value as bool (yes=true, no=false), or false if no value
src/lib/server/config/config.go:139
↓ 39 callersMethodGetInt
GetInt returns the first value associated with the given key as an integer. If there is no value or a parse error, it returns 0 If the string contains
src/lib/mux/params.go:279
↓ 39 callersMethodPrintf
(format string, args ...interface{})
src/lib/mux/log/log.go:80
↓ 37 callersFunctionRedirect
Redirect uses status 302 StatusFound by default - this is not a permanent redirect We don't accept external or relative paths for security reasons
src/lib/server/redirects.go:11
↓ 37 callersMethodRender
Render our template into layout using our context and write out to writer
src/lib/view/render.go:249
↓ 36 callersMethodUpdate
Update one model specified in this query - the column names MUST be verified in the model
src/lib/query/query.go:200
↓ 36 callersMethodWrite
Write ensures content length is 0 and writes to the gzip writer. If Content-Type is not set it attempts to sniff it using http.DetectContentType.
src/lib/mux/middleware/gzip/gzip.go:87
↓ 35 callersMethodOrder
Order defines ORDER BY sql
src/lib/query/query.go:632
↓ 35 callersMethodTemplate
Template sets the template used
src/lib/view/render.go:108
↓ 34 callersFunctionCurrentUser
CurrentUser returns the saved user (or an empty anon user) for the current session cookie
src/lib/session/session.go:15
↓ 33 callersFunctionNotAuthorizedError
NotAuthorizedError returns a new StatusError with Status StatusUnauthorized and optional Title and Message
src/lib/server/errors.go:65
↓ 32 callersFunctionCheckAuthenticity
CheckAuthenticity checks the authenticity token in params against cookie - The masked token is inserted into forms and POSTS by js. The token is inser
src/lib/session/session.go:72
↓ 32 callersFunctionPagesQuery
Query returns a new query for pages
src/lib/query/query_test.go:87
↓ 30 callersFunctionNotFoundError
NotFoundError returns a new StatusError with Status StatusNotFound and optional Title and Message Usage return router.NotFoundError(err,"Optional Titl
src/lib/server/errors.go:52
↓ 30 callersFunctionValidateString
ValidateString returns the string value of param or ""
src/lib/resource/validate.go:79
↓ 25 callersMethodHTML
HTML sets the view content as html (use with caution)
src/lib/view/render.go:153
↓ 24 callersMethodWriteString
WriteString writes the string to the Writer.
src/lib/mux/log/default.go:31
↓ 23 callersMethodJoin
Define a join clause on SQL - we create an inner join like this: INNER JOIN extras_seasons ON extras.id = extra_id q.Select("SELECT units.* FROM units
src/lib/query/query.go:609
↓ 23 callersFunctionProduction
These convenience functions wrap the Current pkg global Production returns true if current config is production.
src/lib/server/config/config.go:118
↓ 23 callersFunctionexpect
(t *testing.T, a interface{}, b interface{})
src/lib/mandrill/mandrill_test.go:12
↓ 22 callersMethodWriteHeader
WriteHeader writes the header and zeroes content length if set Content-Type should be set on all zero length responses.
src/lib/mux/middleware/gzip/gzip.go:75
↓ 21 callersMethodEncode
Encode a given value in the session cookie.
src/lib/auth/session.go:186
↓ 21 callersFunctionEscape
Escape escapes HTML using HTMLEscapeString
src/lib/view/helpers/html.go:23
↓ 21 callersFunctionFindSubscription
FindSubscription fetches a single subscription record from the database by Subscriber id.
src/subscriptions/query.go:96
↓ 20 callersMethodLayout
Layout sets the layout used
src/lib/view/render.go:102
↓ 20 callersFunctionValidateInt
ValidateInt returns the int value of param or 0
src/lib/resource/validate.go:44
↓ 19 callersMethodCreate
Create inserts a new database record and returns the id or an error
src/lib/resource/query.go:33
↓ 19 callersFunctionLog
Log sends the key/value map to all registered loggers. If level is not set, it defaults to LevelInfo.
src/lib/server/log/log.go:71
↓ 19 callersMethodMatchMethod
Match against URL
src/lib/mux/mux.go:21
↓ 19 callersFunctionQuery
Query returns a new query for products with a default order.
src/products/query.go:167
↓ 17 callersFunctionAddUserSessionCookie
AddUserSessionCookie adds a new cookie for the given user on the incoming request, so that we can test authentication in handlers.
src/lib/resource/testing.go:59
↓ 17 callersMethodFormat
Format sets the format used, e.g. text/html,
src/lib/view/render.go:114
↓ 17 callersMethodHeader
Header sets a header on the Renderer's Writer (if set)
src/lib/view/render.go:132
↓ 17 callersMethodLimit
Limit sets the sql LIMIT with an int
src/lib/query/query.go:516
↓ 17 callersMethodputc
* action -- do something! What you do is determined by the argument: 1 Output A. Copy B to A. Get the next B. 2 Copy B to A. Get t
src/lib/assets/internal/jsmin/jsmin.go:187
↓ 16 callersFunctionFindAll
FindAll fetches all story records matching this query from the database.
src/products/query.go:143
↓ 16 callersMethodPath
Return the template path
src/lib/view/parser/template.go:26
↓ 16 callersMethodSource
Return the original template content
src/lib/view/parser/template.go:23
↓ 15 callersMethodCount
Count fetches a count of model objects (executes SQL).
src/lib/query/query.go:266
↓ 14 callersFunctionFind
Find fetches a single user record from the database by id.
src/users/query.go:70
↓ 14 callersMethodHeader
Header returns the underlying writer header
src/lib/mux/middleware/gzip/gzip.go:81
↓ 14 callersFunctionPagesFind
(ID int64)
src/lib/query/query_test.go:91
↓ 14 callersFunctionQuery
Query returns a new query for users with a default order.
src/users/query.go:98
↓ 14 callersFunctionTimeString
TimeString returns a string formatted as a time for this db if the database is nil, an empty string is returned.
src/lib/query/database.go:158
↓ 14 callersMethoderror
(s string)
src/lib/assets/internal/jsmin/jsmin.go:64
↓ 13 callersMethodShowURL
ShowURL returns the show url for this model /table/id
src/lib/resource/urls.go:28
↓ 13 callersMethodaction
(d int)
src/lib/assets/internal/jsmin/jsmin.go:191
↓ 13 callersMethodreset
Clear sql/query caches
src/lib/query/query.go:678
↓ 12 callersFunctionExecSQL
ExecSQL executes the given sql against our database with arbitrary args NB returns sql.Result - not to be used when rows expected
src/lib/query/database.go:148
↓ 12 callersMethodMatch
(string)
src/lib/mux/mux.go:23
↓ 12 callersMethodParse
Parse the URL for params according to pattern
src/lib/mux/mux.go:29
↓ 11 callersMethodAdd
Add appends these values to this key, without removing any other entries.
src/lib/mux/params.go:237
↓ 11 callersMethodContext
Context sets the entire context for rendering
src/lib/view/render.go:165
↓ 11 callersFunctionDo
Do returns an error if this action is not allowed, or nil if it is allowed
src/lib/auth/can/can.go:41
↓ 11 callersMethodFirstResult
FirstResult executes the SQL and returrns the first result
src/lib/query/query.go:320
↓ 11 callersMethodGet
Retreive arbitrary data for this request
src/lib/server/schedule/schedule.go:21
↓ 11 callersFunctionPagesFindAll
(q *Query)
src/lib/query/query_test.go:99
↓ 11 callersFunctionValidateTime
ValidateTime returns the time value of param or the zero value of time.Time
src/lib/resource/validate.go:121
↓ 10 callersFunctionNew
New creates and initialises a new subscriptions instance.
src/subscriptions/query.go:55
↓ 10 callersFunctionNewRoute
NewRoute returns a new Route of our default type.
src/lib/mux/route.go:12
↓ 10 callersMethodOpen
Open and close
src/lib/query/adapters/database.go:14
↓ 10 callersMethodParse
Parse a template file
src/lib/view/parser/template.go:14
↓ 10 callersMethodResults
Results returns an array of results
src/lib/query/query.go:389
↓ 9 callersMethodAdmin
Admin returns true if this user is an Admin.
src/users/role.go:47
↓ 9 callersFunctionFindAll
FindAll fetches all user records matching this query from the database.
src/users/query.go:79
↓ 9 callersFunctionFindPayment
FindPayment fetches a single subscription record from the database by PaymentIntent id.
src/subscriptions/query.go:84
↓ 9 callersFunctionNew
New returns a new mux
src/lib/mux/mux.go:78
↓ 9 callersFunctionNew
New builds a new Query, given the table and primary key
src/lib/query/query.go:54
↓ 9 callersFunctionRedirectExternal
RedirectExternal redirects setting the status code (for example unauthorized), but does no checks on the path Use with caution and only on paths *fixe
src/lib/server/redirects.go:37
↓ 9 callersMethodSelect
Select defines SELECT sql
src/lib/query/query.go:666
↓ 9 callersFunctionSendWebhook
SendWebhook sends a webhook to the specified URL with the given payload.
src/subscriptions/sendWebhook.go:15
↓ 9 callersMethodWriteString
WriteString writes the string to the Writer.
src/lib/server/log/default.go:103
↓ 9 callersFunctionauthenticityToken
()
src/app/assets/scripts/app.js:187
↓ 9 callersMethodtable
Ask model for table name to use
src/lib/query/query.go:727
↓ 8 callersFunctionAdd
Add adds the given logger to the list of outputs, it should not be called from other goroutines.
src/lib/server/log/log.go:84
↓ 8 callersFunctionAuthorise
Authorise adds this ability to the list of abilities for this role. Usage: can.Authorise(role.Admin, can.ManageResource, "pages")
src/lib/auth/can/ability.go:19
↓ 8 callersFunctionConvertMapToVariables
ConvertMapToVariables converts a regular string/string map into the Variable struct e.g. `vars := ConvertMapToVariables(map[string]interface{}{"bob":
src/lib/mandrill/mandrill.go:339
↓ 8 callersMethodDecode
Decode the value in the session cookie.
src/lib/auth/session.go:229
↓ 8 callersFunctionQuery
Query returns a new query for subscriptions with a default order.
src/subscriptions/query.go:183
↓ 8 callersMethodQuery
(query string, args ...interface{})
src/lib/query/adapters/database.go:20
↓ 8 callersMethodQuoteField
Quote Table and Column names
src/lib/query/adapters/database.go:32
↓ 8 callersFunctionupdateRazorpaySubscription
(razorpayEventSubscriptionCompleted RazorpayEventSubscriptionCompleted, subscription *Subscription)
src/subscriptions/razorpayWebhook.go:623
↓ 7 callersFunctionAuthoriseOwner
AuthoriseOwner adds this ability to the list of abilities for this role for resources owned by this user. Usage: can.AuthoriseOwner(role.Reader, can.S
src/lib/auth/can/ability.go:27
next →1–100 of 1,100, ranked by callers