Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/disintegration/bebop
/ functions
Functions
254 in github.com/disintegration/bebop
⨍
Functions
254
◇
Types & classes
45
↓ 82 callers
Method
renderError
(w http.ResponseWriter, status int, code, message string)
api/api.go:117
↓ 80 callers
Method
New
(authService string, authID string)
store/store.go:24
↓ 56 callers
Method
Get
(id int64)
store/store.go:25
↓ 51 callers
Method
Users
()
store/store.go:17
↓ 38 callers
Method
Topics
()
store/store.go:18
↓ 31 callers
Method
Create
(userID int64)
jwt/jwt.go:16
↓ 29 callers
Method
Comments
()
store/store.go:19
↓ 25 callers
Method
logError
(format string, a ...interface{})
api/api.go:129
↓ 19 callers
Method
render
(w http.ResponseWriter, status int, data interface{})
api/api.go:104
↓ 16 callers
Function
New
New creates a new handler based on the given config.
api/api.go:35
↓ 15 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
api/api.go:61
↓ 14 callers
Method
Close
()
static/static.go:87
↓ 13 callers
Method
Scan
(v ...interface{})
store/mysql/store.go:103
↓ 12 callers
Method
handleError
(w http.ResponseWriter, format string, a ...interface{})
oauth/oauth.go:229
↓ 11 callers
Method
currentUser
(r *http.Request)
api/api.go:69
↓ 10 callers
Method
Delete
(id int64)
store/store.go:42
↓ 8 callers
Method
urlParam
(r *http.Request, key string)
api/api.go:65
↓ 6 callers
Method
GetByTopic
(topicID int64, offset, limit int)
store/store.go:49
↓ 5 callers
Method
GetLatest
(offset, limit int)
store/store.go:40
↓ 5 callers
Method
SetName
(id int64, name string)
store/store.go:30
↓ 5 callers
Method
parseRequest
(r *http.Request, data interface{})
api/api.go:98
↓ 5 callers
Method
scanUser
(scanner scanner)
store/postgresql/user.go:39
↓ 5 callers
Method
scanUser
(scanner scanner)
store/mysql/user.go:39
↓ 4 callers
Method
SetAvatar
(id int64, avatar string)
store/store.go:33
↓ 4 callers
Method
URL
URL returns the avatar URL of the given user.
avatar/service.go:52
↓ 3 callers
Method
AddProvider
AddProvider adds a new provider to oauth handler.
oauth/oauth.go:58
↓ 3 callers
Method
GetAdmins
()
store/store.go:27
↓ 3 callers
Method
GetByAuth
(authService string, authID string)
store/store.go:29
↓ 3 callers
Method
GetByName
(name string)
store/store.go:28
↓ 3 callers
Method
GetMany
(ids []int64)
store/store.go:26
↓ 3 callers
Method
Name
()
static/static.go:97
↓ 3 callers
Method
Open
(name string)
static/static.go:29
↓ 3 callers
Method
Save
Save preprocesses and saves a new avatar for the given user.
avatar/service.go:46
↓ 3 callers
Method
SetAdmin
(id int64, admin bool)
store/store.go:32
↓ 3 callers
Method
SetBlocked
(id int64, blocked bool)
store/store.go:31
↓ 3 callers
Method
Verify
(token string)
jwt/jwt.go:17
↓ 3 callers
Function
getConfig
getConfig loads configuration from environment variables or from file.
cmd/bebop/config.go:37
↓ 3 callers
Function
getJSON
(c *http.Client, url string, v interface{})
oauth/providers.go:98
↓ 3 callers
Function
getStore
(cfg *config.Config)
cmd/bebop/config.go:74
↓ 3 callers
Function
getTestStore
(t *testing.T)
store/postgresql/store_test.go:12
↓ 3 callers
Function
getTestStore
(t *testing.T)
store/mysql/store_test.go:12
↓ 3 callers
Method
renderOAuthResult
(w http.ResponseWriter, message string)
oauth/oauth.go:218
↓ 2 callers
Method
Drop
Drop drops the store database.
store/postgresql/store.go:89
↓ 2 callers
Method
Drop
Drop drops the store database.
store/mysql/store.go:83
↓ 2 callers
Method
IsDir
()
static/static.go:113
↓ 2 callers
Method
Migrate
Migrate migrates the store database.
store/postgresql/store.go:78
↓ 2 callers
Method
Migrate
Migrate migrates the store database.
store/mysql/store.go:72
↓ 2 callers
Function
NewService
NewService creates a new JWT service using the given secret (32-byte hex-encoded).
jwt/jwt.go:21
↓ 2 callers
Method
Remove
Remove removes the file with the given path.
filestorage/filestorage.go:15
↓ 2 callers
Method
SetContent
(id int64, content string)
store/store.go:50
↓ 2 callers
Method
SetTitle
(id int64, title string)
store/store.go:41
↓ 2 callers
Method
Stat
()
static/static.go:94
↓ 2 callers
Function
genUniqueFilename
()
avatar/service.go:282
↓ 2 callers
Function
getPagination
(curPage, lastPage)
static/root/frontend/js/bebop-init.js:25
↓ 2 callers
Function
help
()
cmd/bebop/main.go:39
↓ 2 callers
Function
placeholders
(start, count int)
store/postgresql/store.go:112
↓ 2 callers
Function
placeholders
(count int)
store/mysql/store.go:106
↓ 2 callers
Function
prepare
(cfg *Config)
config/config.go:120
↓ 2 callers
Method
remove
remove removes the given avatar from the file storage.
avatar/service.go:275
↓ 2 callers
Method
saveImage
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 callers
Method
scanComment
(scanner scanner)
store/postgresql/comment.go:50
↓ 2 callers
Method
scanComment
(scanner scanner)
store/mysql/comment.go:55
↓ 2 callers
Method
scanTopic
(scanner scanner)
store/postgresql/topic.go:33
↓ 2 callers
Method
scanTopic
(scanner scanner)
store/mysql/topic.go:34
↓ 2 callers
Function
setAdmin
(isAdmin bool)
cmd/bebop/admin.go:42
↓ 1 callers
Function
Connect
Connect connects to a store.
store/postgresql/store.go:42
↓ 1 callers
Function
Connect
Connect connects to a store.
store/mysql/store.go:40
↓ 1 callers
Function
GenKeyHex
GenKeyHex generates a crypto-random key with byte length byteLen and hex-encodes it to a string.
config/config.go:138
↓ 1 callers
Method
Generate
Generate generates a new avatar for the given user.
avatar/service.go:49
↓ 1 callers
Method
ModTime
()
static/static.go:109
↓ 1 callers
Function
New
New creates a new handler based on the given config.
oauth/oauth.go:45
↓ 1 callers
Method
Reset
Reset resets the store database.
store/postgresql/store.go:100
↓ 1 callers
Method
Reset
Reset resets the store database.
store/mysql/store.go:94
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
oauth/oauth.go:90
↓ 1 callers
Method
genState
()
oauth/oauth.go:237
↓ 1 callers
Function
getFileStorage
(cfg *config.Config)
cmd/bebop/config.go:51
↓ 1 callers
Function
initOAuthProviders
(cfg *config.Config, h *oauth.Handler)
cmd/bebop/server.go:99
↓ 1 callers
Function
isUniqueConstraintError
(err error)
store/postgresql/store.go:124
↓ 1 callers
Function
isUniqueConstraintError
(err error)
store/mysql/store.go:117
↓ 1 callers
Function
newConfigHandler
(title string, oauthProviders []string)
cmd/bebop/server.go:129
↓ 1 callers
Method
prepareAndSaveGIF
prepareAndSaveGIF preprocesses and saves the given GIF avatar image (possibly animated) to the file storage.
avatar/service.go:181
↓ 1 callers
Method
prepareAndSaveImage
prepareAndSaveImage preprocesses and saves the given avatar image to the file storage.
avatar/service.go:152
↓ 1 callers
Function
readOrientation
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 callers
Method
saveGIF
saveGIF saves the given GIF image (possibly animated) to the file storage.
avatar/service.go:255
↓ 1 callers
Function
validUserNameRune
validUserNameRune checks if given user name rune is valid.
store/user.go:27
Method
Comments
Comments returns a comment store.
store/postgresql/store.go:35
Method
Comments
Comments returns a comment store.
store/mysql/store.go:33
Method
Comments
()
store/mock/store.go:20
Method
Create
Create creates a JWT string using the given secret key.
jwt/jwt.go:44
Method
Delete
(id int64)
store/store.go:51
Method
Delete
Delete soft-deletes a comment.
store/postgresql/comment.go:116
Method
Delete
Delete soft-deletes a topic.
store/postgresql/topic.go:95
Method
Delete
Delete soft-deletes a comment.
store/mysql/comment.go:121
Method
Delete
Delete soft-deletes a topic.
store/mysql/topic.go:96
Method
Delete
(id int64)
store/mock/comment.go:28
Method
Delete
(id int64)
store/mock/topic.go:28
Function
Dir
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
Function
Embedded
Embedded is an http handler that serves static files embedded into source of this package.
static/static.go:45
Function
EmbeddedFile
EmbeddedFile is an http handler that serves a static file embedded into source of this package.
static/static.go:54
Method
Generate
(user *store.User)
avatar/mock.go:17
next →
1–100 of 254, ranked by callers