MCPcopy Create free account

hub / github.com/bytemode/pitaya-notes / functions

Functions1,948 in github.com/bytemode/pitaya-notes

↓ 4 callersMethodCount
(name string, value int64, tags []string, rate float64)
metrics/statsd_reporter.go:34
↓ 4 callersFunctionDecode
Decode unmarshal the bytes slice to a message See ref: https://github.com/topfreegames/pitaya/blob/master/docs/communication_protocol.md
conn/message/message_encoder.go:145
↓ 4 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
metrics/mocks/statsd_reporter.go:32
↓ 4 callersFunctionFromMap
FromMap creates a new context from a map with propagated values
context/context.go:85
↓ 4 callersFunctionGetBindBroadcastTopic
GetBindBroadcastTopic gets the topic on which bind events will be broadcasted
cluster/nats_rpc_server.go:125
↓ 4 callersMethodGetData
GetData gets the data
session/session.go:239
↓ 4 callersFunctionGetErrorPayload
GetErrorPayload creates and serializes an error payload
util/util.go:138
↓ 4 callersFunctionGetSessionByID
GetSessionByID return a session bound to a frontend server id
session/session.go:145
↓ 4 callersMethodGetStringSlice
GetStringSlice returns a string slice from the inner config
config/config.go:153
↓ 4 callersMethodGetUid
()
protos/push.pb.go:61
↓ 4 callersMethodGetUserId
()
protos/kick.pb.go:52
↓ 4 callersMethodGroupCountMembers
(ctx context.Context, groupName string)
groups/group_service.go:13
↓ 4 callersFunctionGroupRemoveMember
GroupRemoveMember removes specified UID from group
group.go:101
↓ 4 callersFunctionInflateData
(data []byte)
util/compression/compression.go:20
↓ 4 callersMethodInit
Init inits grpc rpc server 在grpc中注册我们的服务实现并且启动监听开始grpc服务
cluster/grpc_rpc_server.go:55
↓ 4 callersFunctionNewConfigInfoRetriever
NewConfigInfoRetriever returns a *ConfigInfoRetriever
cluster/config_info_retriever.go:12
↓ 4 callersFunctionNewCountTimer
NewCountTimer returns a new Timer containing a function that will be called with a period specified by the duration argument. After count times, timer
timer.go:45
↓ 4 callersFunctionNewGRPCClient
NewGRPCClient returns a new instance of GRPCClient
cluster/grpc_rpc_client.go:59
↓ 4 callersFunctionNewRateLimiter
NewRateLimiter returns an initialized *RateLimiting
acceptorwrapper/rate_limiter.go:52
↓ 4 callersFunctionOKResponse
OKResponse returns a response with code 200
examples/demo/custom_metrics/messages/responses.go:9
↓ 4 callersFunctionOnSessionBind
OnSessionBind adds a method to be called when a session is bound same function cannot be added twice! 添加sessionbind的回调方法
session/session.go:156
↓ 4 callersMethodPushToFront
PushToFront updates the session in the frontend
session/session.go:640
↓ 4 callersFunctionRPC
RPC calls a method in a different server RPC 调用 路由信息 replay rpc调用回复 arg rpc调用参数
rpc.go:35
↓ 4 callersMethodRPC
RPC executes the RPC It is expected that if serverID is "" the RPC happens to any destiny server
worker/rpc_job.go:41
↓ 4 callersMethodRead
Read mocks base method
mocks/net.go:86
↓ 4 callersMethodRegister
Register registers components 将组件Component中的复合Handler的方法遍历处理按照路由名字生成一个map放入HandleServices 一个组件生成一个Service存储组件本身和组件中handler的反射信息 同时将组件名字和service关联 且记录所
service/handler.go:149
↓ 4 callersFunctionRegisterModuleAfter
RegisterModuleAfter registers a module after all registered modules
module.go:48
↓ 4 callersFunctionRegisterRPCJob
RegisterRPCJob registers rpc job to execute jobs with retries
app.go:650
↓ 4 callersMethodResponseMID
ResponseMID implementation for session.NetworkEntity interface Respond message to session
agent/agent.go:170
↓ 4 callersMethodSendNotify
(route string, data []byte)
client/pitayaclient.go:31
↓ 4 callersMethodSendRequest
(route string, data []byte)
client/pitayaclient.go:32
↓ 4 callersMethodServerDiscovery
ServerDiscovery returns a serverID based on the route and any metadata that is necessary to decide
worker/rpc_job.go:33
↓ 4 callersMethodSetCondition
SetCondition sets the condition used for verifying when the cron job should run
timer/timer.go:115
↓ 4 callersFunctionSetDictionary
SetDictionary sets routes map
app.go:514
↓ 4 callersMethodSetPitayaServer
SetPitayaServer sets the pitaya server 设置grpc具体实现的服务接口 基本上都是remoteService
cluster/grpc_rpc_server.go:73
↓ 4 callersFunctionSetRPCClient
SetRPCClient to be used 设置rpc client
app.go:251
↓ 4 callersFunctionSetRPCServer
SetRPCServer to be used 设置rpc sercer
app.go:246
↓ 4 callersFunctionSetServiceDiscoveryClient
SetServiceDiscoveryClient to be used 设置服务发现客户端
app.go:256
↓ 4 callersMethodShutdown
结束之前
interfaces/interfaces.go:28
↓ 4 callersMethodStop
Stop stops the acceptor
acceptor/tcp_acceptor.go:75
↓ 4 callersMethodString
()
examples/testing/protos/cluster.pb.go:30
↓ 4 callersMethodString
()
agent/agent_test.go:54
↓ 4 callersFunctionbuildRequest
( ctx context.Context, rpcType protos.RPCType, route *route.Route, session *session.Session, msg *message
cluster/cluster.go:80
↓ 4 callersFunctioncheckReportErr
(metric string, err error)
worker/report.go:60
↓ 4 callersFunctionexecuteAfterPipeline
(ctx context.Context, res interface{}, err error)
service/util.go:116
↓ 4 callersFunctionexecuteBeforePipeline
对参数进行一些列的管道函数处理
service/util.go:101
↓ 4 callersFunctiongetCtxWithRequestKeys
()
agent/agent_test.go:62
↓ 4 callersMethodgetUserKickChannel
()
cluster/nats_rpc_server.go:233
↓ 4 callersMethodheartbeat
()
agent/agent.go:301
↓ 4 callersFunctionpexec
execute job function with protection
timer/timer.go:135
↓ 4 callersFunctionresetComps
()
component_test.go:44
↓ 4 callersFunctionresetModules
()
module_test.go:40
↓ 4 callersFunctionsend
(packet)
examples/demo/chat/web/starx-wsclient.js:401
↓ 4 callersMethodsend
发送消息
agent/agent.go:140
↓ 3 callersFunctionAddMetricsReporter
AddMetricsReporter to be used
app.go:292
↓ 3 callersMethodAddRemoteBindingListener
AddRemoteBindingListener adds a listener
service/remote.go:123
↓ 3 callersMethodAddRoute
AddRoute adds a routing function to a server type 指定类型添加一个路由函数
router/router.go:114
↓ 3 callersMethodAddServer
(*Server)
cluster/cluster.go:55
↓ 3 callersFunctionAddToPropagateCtx
上下文 多goroutine共享数据和多goroutine管理机制 type Context interface { Deadline() (deadline time.Time, ok bool) Done() <-chan struct{} Err() error Value(key inte
context/context.go:57
↓ 3 callersMethodAsJSONString
AsJSONString returns the server as a json string
cluster/server.go:59
↓ 3 callersFunctionBeforeHandler
BeforeHandler pushs a function to the back of the functions pipeline that will be executed before the handler method
pipeline.go:27
↓ 3 callersMethodBeforeShutdown
初始化之后
interfaces/interfaces.go:27
↓ 3 callersMethodClear
Clear should not be used after pitaya is running
pipeline/pipeline.go:64
↓ 3 callersFunctionDecode
Decode returns a context given a binary encoded message
context/context.go:99
↓ 3 callersMethodDecode
(data []byte)
conn/codec/packet_decoder.go:28
↓ 3 callersFunctionDeflateData
(data []byte)
util/compression/compression.go:9
↓ 3 callersMethodDisconnect
Disconnect disconnects the client
client/client.go:323
↓ 3 callersFunctionDocumentation
Documentation returns handler and remotes documentacion
app.go:600
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
protos/mocks/pitaya.go:129
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
interfaces/mocks/interfaces.go:98
↓ 3 callersMethodGetConnChan
()
acceptor/acceptor.go:33
↓ 3 callersMethodGetConnChan
GetConnChan gets a connection channel
acceptor/tcp_acceptor.go:70
↓ 3 callersFunctionGetFromPropagateCtx
GetFromPropagateCtx get a value from the propagate
context/context.go:64
↓ 3 callersMethodGetMsg
()
examples/demo/cluster_protobuf/protos/cluster.pb.go:193
↓ 3 callersMethodGetUnhandledRequestsChannel
GetUnhandledRequestsChannel gets the unhandled requests channel from nats rpc server
cluster/nats_rpc_server.go:225
↓ 3 callersMethodGroupRemoveAll
(ctx context.Context, groupName string)
groups/group_service.go:18
↓ 3 callersMethodGroupRenewTTL
(ctx context.Context, groupName string)
groups/group_service.go:20
↓ 3 callersFunctionHandlersDocs
HandlersDocs returns a map from route to input and output
docgenerator/generator.go:46
↓ 3 callersMethodInit
()
component/component.go:25
↓ 3 callersMethodInit
()
interfaces/interfaces.go:25
↓ 3 callersFunctionInjectSpan
InjectSpan retrieves an opentrancing span from the current context and creates a new context with it encoded in binary format inside the propagatable
tracing/span.go:79
↓ 3 callersFunctionNewBinary
NewBinary creates a new binary module with the given path
modules/binary.go:45
↓ 3 callersFunctionNewMockConn
NewMockConn creates a new mock instance
mocks/net.go:74
↓ 3 callersFunctionPcall
Pcall calls a method that returns an interface and an error and recovers in case of panic
util/util.go:64
↓ 3 callersMethodPush
Push implementation for session.NetworkEntity interface
agent/agent.go:152
↓ 3 callersFunctionRPCTo
RPCTo send a rpc to a specific server RPC 调用指定server 路由信息 replay rpc调用回复 arg rpc调用参数
rpc.go:41
↓ 3 callersFunctionRemotesDocs
RemotesDocs returns a map from route to input and output
docgenerator/generator.go:62
↓ 3 callersFunctionReportMessageProcessDelayFromCtx
ReportMessageProcessDelayFromCtx reports the delay to process the messages
metrics/report.go:58
↓ 3 callersMethodSendKick
(userID string, serverType string, kick *protos.KickMsg)
cluster/cluster.go:47
↓ 3 callersFunctionSendKickToUsers
SendKickToUsers sends kick to an user array
kick.go:33
↓ 3 callersMethodSetDataEncoded
SetDataEncoded sets the whole session data from an encoded value
session/session.go:261
↓ 3 callersMethodSetPitayaServer
SetPitayaServer sets the pitaya server
cluster/nats_rpc_server.go:146
↓ 3 callersFunctionSetTimerBacklog
SetTimerBacklog set the timer created/closing channel backlog, A small backlog may cause the logic to be blocked when call NewTimer/NewCountTimer/time
timer/timer.go:186
↓ 3 callersMethodStart
Start starts worker in another gorotine
worker/worker.go:73
↓ 3 callersMethodTimeInMilliseconds
(name string, value float64, tags []string, rate float64)
metrics/statsd_reporter.go:36
↓ 3 callersMethodUint64
Uint64 returns the value associated with the key as a uint64.
session/session.go:560
↓ 3 callersMethodaddServer
addServer 将Server存入serverMapByID(map[id]*Server) 和 serverMapByType(map[type]map[id]*Server)
cluster/etcd_service_discovery.go:508
↓ 3 callersMethodaddServerIntoEtcd
服务注册 将Server的type和id组装成key 序列化信息做为value将 kv写入etcd
cluster/etcd_service_discovery.go:215
↓ 3 callersMethoddefaultRoute
默认的路由是随机返回一台cluster.Server
router/router.go:64
↓ 3 callersMethoddeleteServer
根据id删除本地的server信息记录
cluster/etcd_service_discovery.go:265
← previousnext →201–300 of 1,948, ranked by callers