MCPcopy Create free account

hub / github.com/disintegration/bebop / functions

Functions254 in github.com/disintegration/bebop

↓ 82 callersMethodrenderError
(w http.ResponseWriter, status int, code, message string)
api/api.go:117
↓ 80 callersMethodNew
(authService string, authID string)
store/store.go:24
↓ 56 callersMethodGet
(id int64)
store/store.go:25
↓ 51 callersMethodUsers
()
store/store.go:17
↓ 38 callersMethodTopics
()
store/store.go:18
↓ 31 callersMethodCreate
(userID int64)
jwt/jwt.go:16
↓ 29 callersMethodComments
()
store/store.go:19
↓ 25 callersMethodlogError
(format string, a ...interface{})
api/api.go:129
↓ 19 callersMethodrender
(w http.ResponseWriter, status int, data interface{})
api/api.go:104
↓ 16 callersFunctionNew
New creates a new handler based on the given config.
api/api.go:35
↓ 15 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
api/api.go:61
↓ 14 callersMethodClose
()
static/static.go:87
↓ 13 callersMethodScan
(v ...interface{})
store/mysql/store.go:103
↓ 12 callersMethodhandleError
(w http.ResponseWriter, format string, a ...interface{})
oauth/oauth.go:229
↓ 11 callersMethodcurrentUser
(r *http.Request)
api/api.go:69
↓ 10 callersMethodDelete
(id int64)
store/store.go:42
↓ 8 callersMethodurlParam
(r *http.Request, key string)
api/api.go:65
↓ 6 callersMethodGetByTopic
(topicID int64, offset, limit int)
store/store.go:49
↓ 5 callersMethodGetLatest
(offset, limit int)
store/store.go:40
↓ 5 callersMethodSetName
(id int64, name string)
store/store.go:30
↓ 5 callersMethodparseRequest
(r *http.Request, data interface{})
api/api.go:98
↓ 5 callersMethodscanUser
(scanner scanner)
store/postgresql/user.go:39
↓ 5 callersMethodscanUser
(scanner scanner)
store/mysql/user.go:39
↓ 4 callersMethodSetAvatar
(id int64, avatar string)
store/store.go:33
↓ 4 callersMethodURL
URL returns the avatar URL of the given user.
avatar/service.go:52
↓ 3 callersMethodAddProvider
AddProvider adds a new provider to oauth handler.
oauth/oauth.go:58
↓ 3 callersMethodGetAdmins
()
store/store.go:27
↓ 3 callersMethodGetByAuth
(authService string, authID string)
store/store.go:29
↓ 3 callersMethodGetByName
(name string)
store/store.go:28
↓ 3 callersMethodGetMany
(ids []int64)
store/store.go:26
↓ 3 callersMethodName
()
static/static.go:97
↓ 3 callersMethodOpen
(name string)
static/static.go:29
↓ 3 callersMethodSave
Save preprocesses and saves a new avatar for the given user.
avatar/service.go:46
↓ 3 callersMethodSetAdmin
(id int64, admin bool)
store/store.go:32
↓ 3 callersMethodSetBlocked
(id int64, blocked bool)
store/store.go:31
↓ 3 callersMethodVerify
(token string)
jwt/jwt.go:17
↓ 3 callersFunctiongetConfig
getConfig loads configuration from environment variables or from file.
cmd/bebop/config.go:37
↓ 3 callersFunctiongetJSON
(c *http.Client, url string, v interface{})
oauth/providers.go:98
↓ 3 callersFunctiongetStore
(cfg *config.Config)
cmd/bebop/config.go:74
↓ 3 callersFunctiongetTestStore
(t *testing.T)
store/postgresql/store_test.go:12
↓ 3 callersFunctiongetTestStore
(t *testing.T)
store/mysql/store_test.go:12
↓ 3 callersMethodrenderOAuthResult
(w http.ResponseWriter, message string)
oauth/oauth.go:218
↓ 2 callersMethodDrop
Drop drops the store database.
store/postgresql/store.go:89
↓ 2 callersMethodDrop
Drop drops the store database.
store/mysql/store.go:83
↓ 2 callersMethodIsDir
()
static/static.go:113
↓ 2 callersMethodMigrate
Migrate migrates the store database.
store/postgresql/store.go:78
↓ 2 callersMethodMigrate
Migrate migrates the store database.
store/mysql/store.go:72
↓ 2 callersFunctionNewService
NewService creates a new JWT service using the given secret (32-byte hex-encoded).
jwt/jwt.go:21
↓ 2 callersMethodRemove
Remove removes the file with the given path.
filestorage/filestorage.go:15
↓ 2 callersMethodSetContent
(id int64, content string)
store/store.go:50
↓ 2 callersMethodSetTitle
(id int64, title string)
store/store.go:41
↓ 2 callersMethodStat
()
static/static.go:94
↓ 2 callersFunctiongenUniqueFilename
()
avatar/service.go:282
↓ 2 callersFunctiongetPagination
(curPage, lastPage)
static/root/frontend/js/bebop-init.js:25
↓ 2 callersFunctionhelp
()
cmd/bebop/main.go:39
↓ 2 callersFunctionplaceholders
(start, count int)
store/postgresql/store.go:112
↓ 2 callersFunctionplaceholders
(count int)
store/mysql/store.go:106
↓ 2 callersFunctionprepare
(cfg *Config)
config/config.go:120
↓ 2 callersMethodremove
remove removes the given avatar from the file storage.
avatar/service.go:275
↓ 2 callersMethodsaveImage
saveImage saves the given image to the file storage. The storage format (JPEG or PNG) is determined based on the image opacity.
avatar/service.go:220
↓ 2 callersMethodscanComment
(scanner scanner)
store/postgresql/comment.go:50
↓ 2 callersMethodscanComment
(scanner scanner)
store/mysql/comment.go:55
↓ 2 callersMethodscanTopic
(scanner scanner)
store/postgresql/topic.go:33
↓ 2 callersMethodscanTopic
(scanner scanner)
store/mysql/topic.go:34
↓ 2 callersFunctionsetAdmin
(isAdmin bool)
cmd/bebop/admin.go:42
↓ 1 callersFunctionConnect
Connect connects to a store.
store/postgresql/store.go:42
↓ 1 callersFunctionConnect
Connect connects to a store.
store/mysql/store.go:40
↓ 1 callersFunctionGenKeyHex
GenKeyHex generates a crypto-random key with byte length byteLen and hex-encodes it to a string.
config/config.go:138
↓ 1 callersMethodGenerate
Generate generates a new avatar for the given user.
avatar/service.go:49
↓ 1 callersMethodModTime
()
static/static.go:109
↓ 1 callersFunctionNew
New creates a new handler based on the given config.
oauth/oauth.go:45
↓ 1 callersMethodReset
Reset resets the store database.
store/postgresql/store.go:100
↓ 1 callersMethodReset
Reset resets the store database.
store/mysql/store.go:94
↓ 1 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
oauth/oauth.go:90
↓ 1 callersMethodgenState
()
oauth/oauth.go:237
↓ 1 callersFunctiongetFileStorage
(cfg *config.Config)
cmd/bebop/config.go:51
↓ 1 callersFunctioninitOAuthProviders
(cfg *config.Config, h *oauth.Handler)
cmd/bebop/server.go:99
↓ 1 callersFunctionisUniqueConstraintError
(err error)
store/postgresql/store.go:124
↓ 1 callersFunctionisUniqueConstraintError
(err error)
store/mysql/store.go:117
↓ 1 callersFunctionnewConfigHandler
(title string, oauthProviders []string)
cmd/bebop/server.go:129
↓ 1 callersMethodprepareAndSaveGIF
prepareAndSaveGIF preprocesses and saves the given GIF avatar image (possibly animated) to the file storage.
avatar/service.go:181
↓ 1 callersMethodprepareAndSaveImage
prepareAndSaveImage preprocesses and saves the given avatar image to the file storage.
avatar/service.go:152
↓ 1 callersFunctionreadOrientation
readOrientation reads the EXIF orientation tag from the given image. It returns 0 if the orientation tag is not found or invalid.
avatar/service.go:288
↓ 1 callersMethodsaveGIF
saveGIF saves the given GIF image (possibly animated) to the file storage.
avatar/service.go:255
↓ 1 callersFunctionvalidUserNameRune
validUserNameRune checks if given user name rune is valid.
store/user.go:27
MethodComments
Comments returns a comment store.
store/postgresql/store.go:35
MethodComments
Comments returns a comment store.
store/mysql/store.go:33
MethodComments
()
store/mock/store.go:20
MethodCreate
Create creates a JWT string using the given secret key.
jwt/jwt.go:44
MethodDelete
(id int64)
store/store.go:51
MethodDelete
Delete soft-deletes a comment.
store/postgresql/comment.go:116
MethodDelete
Delete soft-deletes a topic.
store/postgresql/topic.go:95
MethodDelete
Delete soft-deletes a comment.
store/mysql/comment.go:121
MethodDelete
Delete soft-deletes a topic.
store/mysql/topic.go:96
MethodDelete
(id int64)
store/mock/comment.go:28
MethodDelete
(id int64)
store/mock/topic.go:28
FunctionDir
Dir returns a handler that serves static files from the given local directory. Unlike http.FileServer(http.Dir(path)) it will not serve directory list
static/static.go:17
FunctionEmbedded
Embedded is an http handler that serves static files embedded into source of this package.
static/static.go:45
FunctionEmbeddedFile
EmbeddedFile is an http handler that serves a static file embedded into source of this package.
static/static.go:54
MethodGenerate
(user *store.User)
avatar/mock.go:17
next →1–100 of 254, ranked by callers