Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/8xmx8/GuTikTok
/ functions
Functions
1,182 in github.com/8xmx8/GuTikTok
⨍
Functions
1,182
◇
Types & classes
222
↓ 222 callers
Function
SetSpanError
(span trace.Span, err error)
src/utils/logging/logging.go:106
↓ 106 callers
Function
LogService
(name string)
src/utils/logging/logging.go:100
↓ 102 callers
Method
Start
()
src/storage/cached/ticker.go:16
↓ 76 callers
Function
SetSpanWithHostname
(span trace.Span)
src/utils/logging/logging.go:116
↓ 43 callers
Method
Render
(w http.ResponseWriter)
src/web/utils/json.go:20
↓ 37 callers
Method
String
()
src/rpc/user/user.pb.go:278
↓ 36 callers
Function
request
(ctx context.Context, c *GorseClient, method, url string, body Body)
src/extra/gorse/client.go:207
↓ 19 callers
Method
GetUserExistInformation
(ctx context.Context, in *UserExistRequest, opts ...grpc.CallOption)
src/rpc/user/user_grpc.pb.go:31
↓ 16 callers
Function
failOnError
(err error, msg string)
src/services/msgconsumer/main.go:31
↓ 14 callers
Function
file_relation_proto_rawDescGZIP
()
src/rpc/relation/relation.pb.go:968
↓ 13 callers
Function
RegisterConsul
(name string, port string)
src/utils/consul/register.go:26
↓ 13 callers
Method
Set
(key string, value string)
src/utils/rabbitmq/otel.go:18
↓ 13 callers
Function
SetTraceProvider
(name string)
src/extra/tracing/otel.go:20
↓ 13 callers
Function
exitOnError
(err error)
src/services/videoprocessor/main.go:32
↓ 12 callers
Function
NewRelationServiceClient
(cc grpc.ClientConnInterface)
src/rpc/relation/relation_grpc.pb.go:50
↓ 12 callers
Function
file_favorite_proto_rawDescGZIP
()
src/rpc/favorite/favorite.pb.go:838
↓ 11 callers
Method
New
()
src/services/auth/handler.go:46
↓ 11 callers
Function
failOnError
输出
src/services/message/handler.go:49
↓ 10 callers
Function
BuildMQConnAddr
()
src/utils/rabbitmq/mq.go:8
↓ 10 callers
Function
InitPyroscope
(appName string)
src/extra/profiling/analyzer.go:13
↓ 10 callers
Function
NewUserServiceClient
(cc grpc.ClientConnInterface)
src/rpc/user/user_grpc.pb.go:38
↓ 9 callers
Method
ActionComment
(ctx context.Context, in *ActionCommentRequest, opts ...grpc.CallOption)
src/rpc/comment/comment_grpc.pb.go:31
↓ 9 callers
Function
Get
Get 读取字符串缓存, 其中找到了返回 True,没找到返回 False,异常也返回 False
src/storage/cached/cache.go:143
↓ 9 callers
Method
GetUserInfo
(ctx context.Context, in *UserRequest, opts ...grpc.CallOption)
src/rpc/user/user_grpc.pb.go:30
↓ 9 callers
Function
file_feed_proto_rawDescGZIP
()
src/rpc/feed/feed.pb.go:723
↓ 8 callers
Method
QueryVideoExisted
(ctx context.Context, in *VideoExistRequest, opts ...grpc.CallOption)
src/rpc/feed/feed_grpc.pb.go:36
↓ 8 callers
Function
Write
Write 写入字符串缓存,如果 state 为 false 则只写入 Local Memory
src/storage/cached/cache.go:214
↓ 8 callers
Function
exitOnError
(err error)
src/services/event/main.go:20
↓ 8 callers
Function
file_comment_proto_rawDescGZIP
()
src/rpc/comment/comment.pb.go:645
↓ 7 callers
Function
ExtractAMQPHeaders
(ctx context.Context, headers map[string]interface{})
src/utils/rabbitmq/otel.go:40
↓ 7 callers
Method
Follow
(ctx context.Context, in *RelationActionRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:36
↓ 7 callers
Method
Get
(key string)
src/utils/rabbitmq/otel.go:10
↓ 7 callers
Function
NewFeedServiceClient
(cc grpc.ClientConnInterface)
src/rpc/feed/feed_grpc.pb.go:44
↓ 7 callers
Function
TagDelete
TagDelete 删除字符串缓存
src/storage/cached/cache.go:229
↓ 7 callers
Function
exitOnError
(err error)
src/services/publish/handler.go:43
↓ 7 callers
Function
getOrCreateCache
(name string)
src/storage/cached/cache.go:241
↓ 6 callers
Method
ChatAction
(ctx context.Context, in *ActionRequest, opts ...grpc.CallOption)
src/rpc/chat/chat_grpc.pb.go:31
↓ 6 callers
Function
InjectAMQPHeaders
(ctx context.Context)
src/utils/rabbitmq/otel.go:34
↓ 6 callers
Function
NewPublishServiceClient
(cc grpc.ClientConnInterface)
src/rpc/publish/publish_grpc.pb.go:40
↓ 6 callers
Method
QueryVideos
(ctx context.Context, in *QueryVideosRequest, opts ...grpc.CallOption)
src/rpc/feed/feed_grpc.pb.go:35
↓ 6 callers
Function
file_auth_proto_rawDescGZIP
()
src/rpc/auth/auth.pb.go:448
↓ 6 callers
Function
file_publish_proto_rawDescGZIP
()
src/rpc/publish/publish.pb.go:435
↓ 6 callers
Function
setups1
()
test/rpc/like_test.go:17
↓ 5 callers
Method
CountComment
(ctx context.Context, in *CountCommentRequest, opts ...grpc.CallOption)
src/rpc/comment/comment_grpc.pb.go:33
↓ 5 callers
Method
CountFollowList
(ctx context.Context, in *CountFollowListRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:39
↓ 5 callers
Method
CountFollowerList
(ctx context.Context, in *CountFollowerListRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:41
↓ 5 callers
Method
CreateVideo
(ctx context.Context, in *CreateVideoRequest, opts ...grpc.CallOption)
src/rpc/publish/publish_grpc.pb.go:31
↓ 5 callers
Method
GetFriendList
(ctx context.Context, in *FriendListRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:42
↓ 5 callers
Function
GetLocalPath
(ctx context.Context, fileName string)
src/storage/file/provider.go:32
↓ 5 callers
Function
GetWithFunc
GetWithFunc 从缓存中获取字符串,如果不存在调用 Func 函数获取
src/storage/cached/cache.go:188
↓ 5 callers
Method
IsFollow
(ctx context.Context, in *IsFollowRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:43
↓ 5 callers
Method
Register
(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption)
src/rpc/auth/auth_grpc.pb.go:32
↓ 5 callers
Method
Unfollow
(ctx context.Context, in *RelationActionRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:37
↓ 5 callers
Function
Upload
(ctx context.Context, fileName string, content io.Reader)
src/storage/file/provider.go:28
↓ 5 callers
Function
errorHandler
errorHandler If `requeue` is false, it will just `Nack` it. If `requeue` is true, it will try to re-publish it.
src/services/videoprocessor/summary.go:128
↓ 5 callers
Function
file_chat_proto_rawDescGZIP
()
src/rpc/chat/chat.pb.go:416
↓ 5 callers
Function
file_user_proto_rawDescGZIP
()
src/rpc/user/user.pb.go:456
↓ 4 callers
Method
Chat
(ctx context.Context, in *ChatRequest, opts ...grpc.CallOption)
src/rpc/chat/chat_grpc.pb.go:30
↓ 4 callers
Method
CountFavorite
(ctx context.Context, in *CountFavoriteRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:37
↓ 4 callers
Method
CountUserFavorite
(ctx context.Context, in *CountUserFavoriteRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:38
↓ 4 callers
Method
CountUserTotalFavorited
(ctx context.Context, in *CountUserTotalFavoritedRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:39
↓ 4 callers
Method
CountVideo
(ctx context.Context, in *CountVideoRequest, opts ...grpc.CallOption)
src/rpc/publish/publish_grpc.pb.go:33
↓ 4 callers
Method
FavoriteAction
(ctx context.Context, in *FavoriteRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:34
↓ 4 callers
Method
FavoriteList
(ctx context.Context, in *FavoriteListRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:35
↓ 4 callers
Method
GetFollowList
(ctx context.Context, in *FollowListRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:38
↓ 4 callers
Method
GetFollowerList
(ctx context.Context, in *FollowerListRequest, opts ...grpc.CallOption)
src/rpc/relation/relation_grpc.pb.go:40
↓ 4 callers
Method
GetID
()
src/storage/cached/cache.go:28
↓ 4 callers
Method
GetRecommendInformation
(ctx context.Context, in *RecommendRequest, opts ...grpc.CallOption)
src/rpc/recommend/recommand_grpc.pb.go:30
↓ 4 callers
Method
IsFavorite
(ctx context.Context, in *IsFavoriteRequest, opts ...grpc.CallOption)
src/rpc/favorite/favorite_grpc.pb.go:36
↓ 4 callers
Method
ListComment
(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption)
src/rpc/comment/comment_grpc.pb.go:32
↓ 4 callers
Method
ListVideo
(ctx context.Context, in *ListVideoRequest, opts ...grpc.CallOption)
src/rpc/publish/publish_grpc.pb.go:32
↓ 4 callers
Method
ListVideos
(ctx context.Context, in *ListFeedRequest, opts ...grpc.CallOption)
src/rpc/feed/feed_grpc.pb.go:34
↓ 4 callers
Method
Login
(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption)
src/rpc/auth/auth_grpc.pb.go:33
↓ 4 callers
Function
NewAuthServiceClient
(cc grpc.ClientConnInterface)
src/rpc/auth/auth_grpc.pb.go:40
↓ 4 callers
Function
NewChatServiceClient
(cc grpc.ClientConnInterface)
src/rpc/chat/chat_grpc.pb.go:38
↓ 4 callers
Function
NewCommentServiceClient
(cc grpc.ClientConnInterface)
src/rpc/comment/comment_grpc.pb.go:40
↓ 4 callers
Function
NewFavoriteServiceClient
(cc grpc.ClientConnInterface)
src/rpc/favorite/favorite_grpc.pb.go:46
↓ 4 callers
Function
Ptr
(a T)
src/utils/ptr/ptr.go:3
↓ 4 callers
Function
PublishAuditEvent
(ctx context.Context, action *models2.Action, channel *amqp.Channel)
src/utils/audit/publish.go:34
↓ 4 callers
Function
file_recommand_proto_rawDescGZIP
()
src/rpc/recommend/recommand.pb.go:312
↓ 3 callers
Method
Authenticate
(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption)
src/rpc/auth/auth_grpc.pb.go:31
↓ 3 callers
Method
Check
(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption)
src/rpc/health/check_grpc.pb.go:30
↓ 3 callers
Method
Error
(ctx context.Context, s string, i ...interface{})
src/utils/logging/gorm.go:34
↓ 3 callers
Method
Info
(ctx context.Context, s string, i ...interface{})
src/utils/logging/gorm.go:22
↓ 3 callers
Method
ListVideosByRecommend
(ctx context.Context, in *ListFeedRequest, opts ...grpc.CallOption)
src/rpc/feed/feed_grpc.pb.go:33
↓ 3 callers
Method
New
()
src/services/relation/handler.go:61
↓ 3 callers
Method
New
()
src/services/feed/handler.go:55
↓ 3 callers
Method
New
()
src/services/comment/handler.go:59
↓ 3 callers
Method
New
()
src/services/favorite/handler.go:47
↓ 3 callers
Function
NewRecommendServiceClient
(cc grpc.ClientConnInterface)
src/rpc/recommend/recommand_grpc.pb.go:38
↓ 3 callers
Method
RegisterRecommendUser
(ctx context.Context, in *RecommendRegisterRequest, opts ...grpc.CallOption)
src/rpc/recommend/recommand_grpc.pb.go:31
↓ 3 callers
Function
errorHandler
(channel *amqp.Channel, d amqp.Delivery, requeue bool, logger *logrus.Entry, span *trace.Span)
src/services/msgconsumer/main.go:491
↓ 3 callers
Function
exitOnError
(err error)
src/services/feed/handler.go:49
↓ 3 callers
Function
exitOnError
Maximum RateComment query amount
src/services/comment/handler.go:40
↓ 3 callers
Function
exitOnError
(err error)
src/services/favorite/handler.go:41
↓ 3 callers
Function
file_check_proto_rawDescGZIP
()
src/rpc/health/check.pb.go:209
↓ 3 callers
Function
isUserExist
(ctx context.Context, actorID uint32, userID uint32, span trace.Span, logger *logrus.Entry)
src/services/relation/handler.go:1270
↓ 3 callers
Function
queryDetailed
(ctx context.Context, logger *logrus.Entry, actorId uint32, videos []*models.Video)
src/services/feed/handler.go:510
↓ 2 callers
Function
CloseMQConn
()
src/services/message/handler.go:155
↓ 2 callers
Function
DeclareAuditExchange
(channel *amqp.Channel)
src/utils/audit/publish.go:21
next →
1–100 of 1,182, ranked by callers