MCPcopy Create free account

hub / github.com/disintegration/bebop / functions

Functions254 in github.com/disintegration/bebop

MethodGenerate
Generate generates a new avatar for the given user.
avatar/service.go:112
MethodGet
(id int64)
store/store.go:39
MethodGet
(id int64)
store/store.go:48
MethodGet
Get finds a comment by ID.
store/postgresql/comment.go:63
MethodGet
Get finds a topic by ID.
store/postgresql/topic.go:46
MethodGet
Get finds a user by ID.
store/postgresql/user.go:61
MethodGet
Get finds a comment by ID.
store/mysql/comment.go:68
MethodGet
Get finds a topic by ID.
store/mysql/topic.go:47
MethodGet
Get finds a user by ID.
store/mysql/user.go:61
MethodGet
(id int64)
store/mock/comment.go:19
MethodGet
(id int64)
store/mock/topic.go:19
MethodGet
(id int64)
store/mock/user.go:24
MethodGetAdmins
GetAdmins finds all the admin users.
store/postgresql/user.go:111
MethodGetAdmins
GetAdmins finds all the admin users.
store/mysql/user.go:111
MethodGetAdmins
()
store/mock/user.go:30
MethodGetByAuth
GetByAuth finds a user by authService and authID.
store/postgresql/user.go:141
MethodGetByAuth
GetByAuth finds a user by authService and authID.
store/mysql/user.go:141
MethodGetByAuth
(authService string, authID string)
store/mock/user.go:36
MethodGetByName
GetByName finds a user by name.
store/postgresql/user.go:135
MethodGetByName
GetByName finds a user by name.
store/mysql/user.go:135
MethodGetByName
(name string)
store/mock/user.go:33
MethodGetByTopic
GetByTopic finds comments by topic.
store/postgresql/comment.go:69
MethodGetByTopic
GetByTopic finds comments by topic.
store/mysql/comment.go:74
MethodGetByTopic
(topicID int64, offset, limit int)
store/mock/comment.go:22
MethodGetLatest
GetLatest returns a limited number of latest topics and a total topic count.
store/postgresql/topic.go:52
MethodGetLatest
GetLatest returns a limited number of latest topics and a total topic count.
store/mysql/topic.go:53
MethodGetLatest
(offset, limit int)
store/mock/topic.go:22
MethodGetMany
GetMany finds users by IDs.
store/postgresql/user.go:67
MethodGetMany
GetMany finds users by IDs.
store/mysql/user.go:67
MethodGetMany
(ids []int64)
store/mock/user.go:27
FunctionInit
Init generates an initial config string.
config/config.go:125
MethodMode
()
static/static.go:105
MethodNew
(authorID int64, title string)
store/store.go:38
MethodNew
(topicID int64, authorID int64, content string)
store/store.go:47
MethodNew
New creates a new comment.
store/postgresql/comment.go:15
MethodNew
New creates a new topic.
store/postgresql/topic.go:15
MethodNew
New creates a new user.
store/postgresql/user.go:15
MethodNew
New creates a new comment.
store/mysql/comment.go:15
MethodNew
New creates a new topic.
store/mysql/topic.go:15
MethodNew
New creates a new user.
store/mysql/user.go:15
MethodNew
(topicID int64, authorID int64, content string)
store/mock/comment.go:16
MethodNew
(authorID int64, title string)
store/mock/topic.go:16
MethodNew
(authService string, authID string)
store/mock/user.go:21
FunctionNewAmazonS3
NewAmazonS3 returns a new Amazon S3 file storage.
filestorage/s3.go:21
FunctionNewGoogleCloudStorage
NewGoogleCloudStorage returns a new GoogleCloudStorage file storage.
filestorage/gcs.go:19
FunctionNewLocal
NewLocal returns a new local file storage.
filestorage/local.go:21
FunctionNewService
NewService creates a new avatar service.
avatar/service.go:63
MethodOpen
(name string)
static/static.go:64
FunctionReadEnv
ReadEnv reads a bebop config from environment variables.
config/config.go:111
FunctionReadFile
ReadFile reads a bebop config from file.
config/config.go:88
MethodReaddir
(count int)
static/static.go:90
MethodRemove
Remove removes the file with the given path.
filestorage/s3.go:54
MethodRemove
Remove removes the file with the given path.
filestorage/local.go:56
MethodRemove
Remove removes the file with the given path.
filestorage/gcs.go:57
MethodRoundTrip
(*http.Request)
oauth/providers_test.go:102
MethodSave
(user *store.User, imageData []byte)
avatar/mock.go:14
MethodSave
Save preprocesses and saves a new avatar for the given user.
avatar/service.go:72
MethodSave
Save saves data from r to file with the given path.
filestorage/s3.go:38
MethodSave
Save saves data from r to file with the given path.
filestorage/local.go:34
MethodSave
Save saves data from r to file with the given path.
filestorage/filestorage.go:12
MethodSave
Save saves data from r to file with the given path.
filestorage/gcs.go:38
MethodScan
(v ...interface{})
store/postgresql/store.go:109
MethodSetAdmin
SetAdmin updates user.Admin value.
store/postgresql/user.go:162
MethodSetAdmin
SetAdmin updates user.Admin value.
store/mysql/user.go:162
MethodSetAdmin
(id int64, admin bool)
store/mock/user.go:45
MethodSetAvatar
SetAvatar updates user.Avatar value.
store/postgresql/user.go:168
MethodSetAvatar
SetAvatar updates user.Avatar value.
store/mysql/user.go:168
MethodSetAvatar
(id int64, avatar string)
store/mock/user.go:48
MethodSetBlocked
SetBlocked updates user.Blocked value.
store/postgresql/user.go:156
MethodSetBlocked
SetBlocked updates user.Blocked value.
store/mysql/user.go:156
MethodSetBlocked
(id int64, blocked bool)
store/mock/user.go:42
MethodSetContent
SetContent updates comment.Content value.
store/postgresql/comment.go:107
MethodSetContent
SetContent updates comment.Content value.
store/mysql/comment.go:112
MethodSetContent
(id int64, content string)
store/mock/comment.go:25
MethodSetName
SetName updates user.Name value. It returns ErrConflict if the given name is already taken.
store/postgresql/user.go:147
MethodSetName
SetName updates user.Name value. It returns ErrConflict if the given name is already taken.
store/mysql/user.go:147
MethodSetName
(id int64, name string)
store/mock/user.go:39
MethodSetTitle
SetTitle updates topic.Title value.
store/postgresql/topic.go:89
MethodSetTitle
SetTitle updates topic.Title value.
store/mysql/topic.go:90
MethodSetTitle
(id int64, title string)
store/mock/topic.go:25
MethodSize
()
static/static.go:101
MethodSys
()
static/static.go:117
FunctionTestComment
(t *testing.T)
store/postgresql/comment_test.go:7
FunctionTestComment
(t *testing.T)
store/mysql/comment_test.go:7
FunctionTestCreateAndVerify
(t *testing.T)
jwt/jwt_test.go:9
FunctionTestCurrentUser
(t *testing.T)
api/api_test.go:17
FunctionTestDeleteComment
(t *testing.T)
api/comments_test.go:425
FunctionTestDeleteTopic
(t *testing.T)
api/topics_test.go:387
FunctionTestGetUser
(t *testing.T)
oauth/providers_test.go:12
FunctionTestHandleGetComment
(t *testing.T)
api/comments_test.go:353
FunctionTestHandleGetComments
(t *testing.T)
api/comments_test.go:17
FunctionTestHandleGetTopic
(t *testing.T)
api/topics_test.go:314
FunctionTestHandleGetTopics
(t *testing.T)
api/topics_test.go:17
FunctionTestHandleGetUser
(t *testing.T)
api/users_test.go:286
FunctionTestHandleGetUsers
(t *testing.T)
api/users_test.go:122
FunctionTestHandleMe
(t *testing.T)
api/users_test.go:20
FunctionTestHandleNewComment
(t *testing.T)
api/comments_test.go:159
FunctionTestHandleNewTopic
(t *testing.T)
api/topics_test.go:124
FunctionTestHandleSetUserAvatar
(t *testing.T)
api/users_test.go:611
FunctionTestHandleSetUserBlocked
(t *testing.T)
api/users_test.go:816
← previousnext →101–200 of 254, ranked by callers