Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Banrai/PiScan
/ functions
Functions
221 in github.com/Banrai/PiScan
⨍
Functions
221
◇
Types & classes
28
↓ 1 callers
Function
GenerateDigest
(privateKey string, message string)
server/digest/digest.go:16
↓ 1 callers
Function
GenerateHeaders
(sender, recipient, subject, boundary string)
server/emailer/emailer.go:85
↓ 1 callers
Function
GetAllAccounts
(db *sqlite3.Conn)
client/database/db-access.go:376
↓ 1 callers
Function
GetItems
(db *sqlite3.Conn, a *Account)
client/database/db-access.go:247
↓ 1 callers
Function
GetVendor
(db *sqlite3.Conn, vendorId int64)
client/database/db-access.go:285
↓ 1 callers
Function
GetVendorProducts
(db *sqlite3.Conn, itemId int64)
client/database/db-access.go:319
↓ 1 callers
Function
Oc
(a,b,c)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
Pc
(a,b,c,d)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
SendEmailedItems
(context EmailedItems)
server/api/notify.go:44
↓ 1 callers
Function
SendFromServer
SendFromServer transmits the given message, with optional attachments, via the defined mail server and port
server/emailer/emailer.go:129
↓ 1 callers
Method
Unfavorite
(db *sqlite3.Conn)
client/database/db-access.go:206
↓ 1 callers
Method
Update
(stmt *sql.Stmt)
server/database/barcodes/account-access.go:92
↓ 1 callers
Function
Vc
(a,b,c,d)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
Wb
(a,b,c)
client/ui/js/jquery.min.js:3
↓ 1 callers
Function
Zc
()
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
_is_duplicate
Check the current list of match objects and return a boolean if the asin already exists or not
server/commerce/amazon/amazon_api_lookup.py:27
↓ 1 callers
Function
apiLookup
The apiLookup function provides a simple interface to the python amazon_api_lookup.py script using os/exec and returns the string result and error (if
server/commerce/amazon/amazon.go:26
↓ 1 callers
Function
b
()
client/ui/js/respond.min.js:5
↓ 1 callers
Function
buyAmzUS
(targetClass)
client/ui/js/controls.js:16
↓ 1 callers
Function
c
(a,b)
client/ui/js/html5shiv.min.js:4
↓ 1 callers
Function
calculateTimeSince
(posted string)
client/database/db-access.go:64
↓ 1 callers
Function
d
(b)
client/ui/js/bootstrap.min.js:6
↓ 1 callers
Function
decodeEvents
DecodeEvents iterates through the list of InputEvents and decodes the barcode data into a string, along with a boolean to indicate if this particular
scanner/scanner.go:127
↓ 1 callers
Function
deleteItem
deleteItem attempts to lookup and remove the Item for the Account and Item.Id combination, returning a bool on success/fail, and the db lookup error (
client/ui/ui.go:220
↓ 1 callers
Function
doShutdown
()
client/ui/shutdown.go:15
↓ 1 callers
Function
e
()
client/ui/js/bootstrap.min.js:6
↓ 1 callers
Function
f
()
client/ui/js/bootstrap.min.js:6
↓ 1 callers
Function
f
(a,b)
client/ui/js/respond.min.js:5
↓ 1 callers
Function
g
(a,c,d)
client/ui/js/html5shiv.min.js:4
↓ 1 callers
Function
getExistingItem
(db *sqlite3.Conn, barcode, desc string)
client/database/db-access.go:147
↓ 1 callers
Function
hc
(a,b,c)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
i
(a,b)
client/ui/js/html5shiv.min.js:4
↓ 1 callers
Function
i
(a,c,d,e,f,i,j)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
j
(a,b,c,d,f)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
jc
(a,b)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
kc
(a,b,c)
client/ui/js/jquery.min.js:4
↓ 1 callers
Function
lb
(a)
client/ui/js/jquery.min.js:2
↓ 1 callers
Function
lookup
Lookup the given barcode and return a list of possible matches
server/commerce/amazon/amazon_api_lookup.py:41
↓ 1 callers
Function
lookupKeyCode
lookupKeyCode finds the corresponding string for the given hex byte, returning "-" as the default if not found
scanner/scanner.go:91
↓ 1 callers
Function
mb
(a)
client/ui/js/jquery.min.js:2
↓ 1 callers
Function
n
(a,c,f)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
p
(a,b)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
q
(a)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
q
()
client/ui/js/bootstrap.min.js:6
↓ 1 callers
Function
read
read takes the open scanner device pointer and returns a list of InputEvent captures, corresponding to input (scan) events
scanner/scanner.go:102
↓ 1 callers
Function
renderAccountEditTemplate
* HTML Response Functions (via templates) */
client/ui/account.go:36
↓ 1 callers
Function
renderItemEditTemplate
(w http.ResponseWriter, f *ItemForm)
client/ui/ui.go:293
↓ 1 callers
Function
renderItemListTemplate
* HTML Response Functions (via templates) */
client/ui/ui.go:287
↓ 1 callers
Function
showConfirmModal
(title, header, message, continueAction)
client/ui/js/utils.js:29
↓ 1 callers
Function
submitOk
()
client/ui/js/controls.js:91
↓ 1 callers
Function
tb
(a,b,c)
client/ui/js/jquery.min.js:2
↓ 1 callers
Function
vb
(a,b,c,d,e,f)
client/ui/js/jquery.min.js:2
↓ 1 callers
Function
w
()
client/ui/js/respond.min.js:5
↓ 1 callers
Function
x
()
client/ui/js/respond.min.js:5
↓ 1 callers
Function
y
(a,b)
client/ui/js/modernizr.js:4
↓ 1 callers
Function
yb
(a)
client/ui/js/jquery.min.js:3
↓ 1 callers
Function
z
(a,b,d)
client/ui/js/modernizr.js:4
Method
Add
(db *sqlite3.Conn)
client/database/db-access.go:342
Function
AddVendor
(db *sqlite3.Conn, vendorId, vendorDisplayName string)
client/database/db-access.go:267
Function
AddVendorProduct
(db *sqlite3.Conn, productCode string, vendorId, itemId int64)
client/database/db-access.go:278
Function
ConfirmServerAccount
ConfirmServerAccount responds to the ajax request from the client to lookup and return the status of the given account
client/ui/account.go:132
Function
ContributeBarcode
Write functions (user contributions)
server/database/barcodes/pod-access.go:232
Function
ContributeBarcodeBrand
(stmt *sql.Stmt, rec BARCODE, brand *BRAND)
server/database/barcodes/pod-access.go:242
Function
ContributeBrand
(stmt *sql.Stmt, rec *CONTRIBUTED_BRAND, acc *ACCOUNT)
server/database/barcodes/pod-access.go:248
Function
ContributeData
(r *http.Request, db DBConnection)
server/api/contribute.go:15
Method
Delete
(stmt *sql.Stmt)
server/database/barcodes/account-access.go:86
Function
DeleteItems
DeleteItems accepts a form post of one or more Item.Id values, and attempts to remove them from the client db. Unless it hits a critical error, it ret
client/ui/ui.go:323
Function
DigestMatches
(privateKey, messagePlainText, messageDigest string)
server/digest/digest.go:22
Function
EditAccount
EditAccount presents the form for editing Account information (in response to a GET request) and handles to add/updates (in response to a POST request
client/ui/account.go:45
Function
EmailItems
EmailItems handles the client form post, to send a list of the selected items via email to the given user
client/ui/email.go:19
Function
EmailSelectedItems
(r *http.Request, db DBConnection)
server/api/notify.go:56
Function
FavoriteItems
FavoriteItems accepts a form post of one or more Item.Id values, and attempts to change their status in the client db to 'favorite'
client/ui/ui.go:332
Function
FavoritedItems
FavoritedItems returns all the products scanned and favorited by this Account
client/ui/ui.go:316
Function
GetAccountStatus
(r *http.Request, db DBConnection)
server/api/register.go:154
Function
GetAllVendors
(db *sqlite3.Conn)
client/database/db-access.go:303
Function
GetDesignatedAccount
GetDesignatedAccount implements single-user mode (for now): it returns either the anonymous account, or the first non-anonymous account found on the s
client/database/db-access.go:423
Function
GetFavoriteItems
(db *sqlite3.Conn, a *Account)
client/database/db-access.go:251
Function
GetSingleItem
(db *sqlite3.Conn, a *Account, id int64)
client/database/db-access.go:255
Function
InitializeDB
(coords ConnCoordinates)
client/database/db-access.go:431
Function
InitializeTemplates
InitializeTemplates confirms the given folder string leads to the html template files, otherwise templates.Must() will complain
client/ui/ui.go:301
Function
InputUnknownItem
InputUnknownItem handles the form for user contributions of unknown barcode scans: a GET presents the form, and a POST responds to the user-contribute
client/ui/contribute.go:20
Function
InsertAsin
InsertAsin takes a prepared statement corresponding to an insert, an AMAZON data struct, and inserts the data from the struct as a new record in the d
server/database/barcodes/commerce-access.go:82
Function
J
()
client/ui/js/jquery.min.js:2
Function
Lookup
The Lookup function first looks for the given barcode in the barcodes database. If not found there, it tries the Amazon Product API, and save all thos
server/commerce/amazon/amazon.go:44
Function
LookupAccount
Query Functions LookupAccount searches for the Account using either the id (uuid) or email address string parameter, depending on which prepared state
server/database/barcodes/account-access.go:40
Function
LookupAsin
Query Functions Amazon LookupAsin takes a prepared statment (using the ASIN_LOOKUP string), a barcode string, and looks it up in the Amazon table (sou
server/database/barcodes/commerce-access.go:39
Function
LookupBarcode
Lookup the barcode, using both the barcodes database, and the Amazon API
server/api/scan.go:18
Function
LookupBrand
LookupBrand takes a prepared statment (using the BRAND_LOOKUP string), a bsin (brand id) string, and looks it up in POD, returning a list of matching
server/database/barcodes/pod-access.go:101
Function
LookupBrandByName
(stmt *sql.Stmt, brandName string)
server/database/barcodes/pod-access.go:133
Function
LookupContributedBarcode
Query Functions (user contributions)
server/database/barcodes/pod-access.go:167
Function
LookupContributedBrand
(stmt *sql.Stmt, brandName string)
server/database/barcodes/pod-access.go:201
Function
LookupGtin
Query Functions (POD) LookupGtin takes a prepared statment (using the GTIN_LOOKUP string), a barcode string, and looks it up in POD, returning a list
server/database/barcodes/pod-access.go:66
Function
MakeHTMLHandler
Respond to requests using HTML templates and the standard Content-Type (i.e., "text/html")
client/ui/ui.go:63
Function
MakeHandler
Respond to requests that are not "text/html" Content-Types (e.g., for ajax calls)
client/ui/ui.go:82
Function
NewAPIServer
NewAPIServer uses the map of handlers to respond to incoming FastCGI requests on the specific host, port, and transport
server/api/server.go:91
Function
Redirect
Use this to redirect one request to another target (string)
client/ui/ui.go:56
Function
RegisterAccount
(r *http.Request, db DBConnection, serverLink string)
server/api/register.go:47
Function
RemoveSingleItem
* Ajax Response Functions (as strings via MakeHandler) */ RemoveSingleItem looks up the single item represented by the itemId form post variable, and
client/ui/ui.go:354
Function
Respond
(mediaType string, charset string, fn func(w http.ResponseWriter, r *http.Request) string)
server/api/server.go:81
Function
ScanForever
ScanForever takes a linux input device string pointing to the scanner to read from, invokes the given function on the resulting barcode string when co
scanner/scanner.go:150
← previous
next →
101–200 of 221, ranked by callers