Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytemode/pitaya-notes
/ functions
Functions
1,948 in github.com/bytemode/pitaya-notes
⨍
Functions
1,948
◇
Types & classes
272
↓ 1 callers
Function
configApp
()
examples/demo/chat/main.go:147
↓ 1 callers
Method
configure
()
modules/binding_storage.go:63
↓ 1 callers
Method
configure
()
cluster/nats_rpc_server.go:86
↓ 1 callers
Method
configure
(cfg *config.Config)
cluster/grpc_rpc_client.go:90
↓ 1 callers
Method
configure
()
cluster/nats_rpc_client.go:77
↓ 1 callers
Method
configure
etcdServiceDiscovery 设置服务发现的配置
cluster/etcd_service_discovery.go:108
↓ 1 callers
Function
configureBackend
()
examples/demo/cluster_grpc/main.go:23
↓ 1 callers
Function
configureBackend
()
examples/demo/cluster_protobuf/main.go:16
↓ 1 callers
Function
configureBackend
配置后端服务器
examples/demo/cluster/main.go:20
↓ 1 callers
Function
configureDefaultPipelines
(config *config.Config)
app.go:184
↓ 1 callers
Function
configureFrontend
(port int)
examples/demo/cluster_grpc/main.go:36
↓ 1 callers
Function
configureFrontend
(port int)
examples/demo/cluster_protobuf/main.go:29
↓ 1 callers
Function
configureFrontend
(port int)
examples/demo/rate_limiting/main.go:20
↓ 1 callers
Function
configureFrontend
配置前端服务器
examples/demo/cluster/main.go:37
↓ 1 callers
Function
configureMetagame
()
examples/demo/worker/main.go:17
↓ 1 callers
Function
configureMetrics
(serverType string)
app.go:148
↓ 1 callers
Function
configureRoom
(port int)
examples/demo/worker/main.go:24
↓ 1 callers
Function
configureRoom
(port int)
examples/demo/custom_metrics/main.go:17
↓ 1 callers
Function
configureWorker
()
examples/demo/worker/main.go:37
↓ 1 callers
Function
createBaseClient
(config *config.Config)
groups/etcd_group_service.go:53
↓ 1 callers
Function
deCompose
(msg)
examples/demo/chat/web/starx-wsclient.js:518
↓ 1 callers
Function
encodeMsgBody
(msg, buffer, offset)
examples/demo/chat/web/protocol.js:341
↓ 1 callers
Function
encodeMsgFlag
(type, compressRoute, buffer, offset)
examples/demo/chat/web/protocol.js:293
↓ 1 callers
Function
encodeMsgId
(id, buffer, offset)
examples/demo/chat/web/protocol.js:304
↓ 1 callers
Function
encodeMsgRoute
(compressRoute, route, buffer, offset)
examples/demo/chat/web/protocol.js:320
↓ 1 callers
Method
fillDefaultValues
()
config/config.go:52
↓ 1 callers
Function
firstLetterToLower
(name string, isOutput bool)
docgenerator/generator.go:157
↓ 1 callers
Method
getDescriptors
Receives one json string from the auto documentation, decode it and request to the server the protobuf descriptors. If the the descriptors route are
client/protoclient.go:187
↓ 1 callers
Function
getKeys
Get recursively all protos needed in a Unmarshal json.
client/protoclient.go:159
↓ 1 callers
Function
getLoggerFromArgs
(args []reflect.Value)
util/util.go:47
↓ 1 callers
Method
getSubscribeChannel
()
cluster/nats_rpc_client.go:230
↓ 1 callers
Function
groupTTLCleanup
(conf *config.Config)
groups/memory_group_service.go:38
↓ 1 callers
Method
handleHandshakeResponse
()
client/client.go:140
↓ 1 callers
Method
handlePackets
()
client/client.go:225
↓ 1 callers
Method
handleServerMessages
()
client/client.go:285
↓ 1 callers
Function
handshakeInit
(data)
examples/demo/chat/web/starx-wsclient.js:539
↓ 1 callers
Method
hasTLSCertificates
()
acceptor/ws_acceptor.go:99
↓ 1 callers
Method
hasTLSCertificates
()
acceptor/tcp_acceptor.go:80
↓ 1 callers
Function
hbdEncode
(heartbeatTimeout time.Duration, packetEncoder codec.PacketEncoder, dataCompression bool, serializerName strin
agent/agent.go:454
↓ 1 callers
Function
helperConcatBytes
(packetType packet.Type, length, data []byte)
conn/codec/pomelo_packet_encoder_test.go:10
↓ 1 callers
Function
initClientInstance
(config *config.Config, clientOrNil *clientv3.Client)
groups/etcd_group_service.go:36
↓ 1 callers
Function
initData
(data)
examples/demo/chat/web/starx-wsclient.js:556
↓ 1 callers
Function
intToBytes
大端模式将int表位bytes Encode packet data length to bytes(Big end)
conn/codec/pomelo_packet_encoder.go:74
↓ 1 callers
Function
isChan
(a interface{})
helpers/type_support.go:10
↓ 1 callers
Function
isNil
(a interface{})
helpers/type_support.go:17
↓ 1 callers
Method
lazyinit
()
defaultpipelines/default_struct_validator.go:34
↓ 1 callers
Function
listen
()
app.go:469
↓ 1 callers
Method
marshalResponse
(res *protos.Response)
cluster/nats_rpc_server.go:237
↓ 1 callers
Function
mergeMetadatas
(pitayaErr *Error, metadata map[string]string)
errors/errors.go:70
↓ 1 callers
Function
mixin
* Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private
examples/demo/chat/web/starx-wsclient.js:13
↓ 1 callers
Function
newWSConn
newWSConn return an initialized *wsConn
acceptor/ws_acceptor.go:177
↓ 1 callers
Method
onSessionBind
onSessionBind should be called on each session bind
cluster/nats_rpc_server.go:130
↓ 1 callers
Function
parseStruct
(typ reflect.Type)
docgenerator/generator.go:108
↓ 1 callers
Function
periodicMetrics
()
app.go:339
↓ 1 callers
Method
pipe
()
acceptorwrapper/base.go:64
↓ 1 callers
Method
processKick
()
cluster/nats_rpc_server.go:302
↓ 1 callers
Method
processMessages
processMessages 处理nats连接上的消息 进行rpc调用
cluster/nats_rpc_server.go:256
↓ 1 callers
Function
processPackage
(msgs)
examples/demo/chat/web/starx-wsclient.js:482
↓ 1 callers
Method
processPushes
()
cluster/nats_rpc_server.go:292
↓ 1 callers
Function
processRemoteMessage
processRemoteMessage 处理远程消息 sys和user rpc
service/remote.go:269
↓ 1 callers
Method
processSessionBindings
()
cluster/nats_rpc_server.go:280
↓ 1 callers
Method
pushToUser
pushToUser call sessionBindRemote sendKick 使用protos.PitayaClient完成调用
cluster/grpc_rpc_client.go:352
↓ 1 callers
Method
registerCustomMetrics
( constLabels map[string]string, additionalLabelsKeys []string, spec *CustomMetricsSpec, )
metrics/prometheus_reporter.go:50
↓ 1 callers
Method
registerMetrics
( constLabels, additionalLabels map[string]string, spec *CustomMetricsSpec, )
metrics/prometheus_reporter.go:96
↓ 1 callers
Method
removeBinding
删除etcd上的key
modules/binding_storage.go:83
↓ 1 callers
Method
renewLease
renewLease reestablishes connection with etcd 创新生成租约重新启动后服务
cluster/etcd_service_discovery.go:169
↓ 1 callers
Function
reply
(code int32, msg string)
examples/demo/cluster_grpc/services/connector.go:33
↓ 1 callers
Function
reply
(code int32, msg string)
examples/demo/cluster/services/connector.go:34
↓ 1 callers
Function
reset
()
examples/demo/chat/web/starx-wsclient.js:354
↓ 1 callers
Method
revoke
revoke prevents Pitaya from crashing when etcd is not available
cluster/etcd_service_discovery.go:488
↓ 1 callers
Method
send
(m pendingMessage, to string)
agent/agent_remote.go:191
↓ 1 callers
Function
sendDataToMembers
(uids []string, frontendType, route string, v interface{})
group.go:74
↓ 1 callers
Method
sendHandshakeRequest
()
client/client.go:131
↓ 1 callers
Method
sendHeartbeats
(interval int)
client/client.go:301
↓ 1 callers
Method
sendKick
(ctx context.Context, req *protos.KickMsg)
cluster/grpc_rpc_client.go:381
↓ 1 callers
Method
sendPush
(m pendingMessage, userID string, sv *cluster.Server)
agent/agent_remote.go:206
↓ 1 callers
Method
serialize
(m pendingMessage)
agent/agent_remote.go:162
↓ 1 callers
Method
sessionBindRemote
(ctx context.Context, req *protos.BindMsg)
cluster/grpc_rpc_client.go:371
↓ 1 callers
Function
setup
()
app_test.go:78
↓ 1 callers
Function
setup
()
groups/group_service_test.go:46
↓ 1 callers
Function
setup
()
tracing/span_test.go:46
↓ 1 callers
Function
setup
()
config/config_test.go:40
↓ 1 callers
Method
setupOnAfterSessionBindCB
session bind之后将uid和前端服务器的id放入etcd存储
modules/binding_storage.go:115
↓ 1 callers
Method
setupOnSessionCloseCB
session关闭(连接断开)则移除etcd上的uid和前端服务器id的绑定关系
modules/binding_storage.go:103
↓ 1 callers
Function
shutdown
()
tracing/span_test.go:50
↓ 1 callers
Function
shutdown
()
config/config_test.go:46
↓ 1 callers
Method
stop
()
cluster/nats_rpc_client.go:226
↓ 1 callers
Function
tagsFromContext
(ctx context.Context)
metrics/report.go:105
↓ 1 callers
Method
unmarshalRouteMetadata
( jobArg *workers.Msg, )
worker/worker.go:187
↓ 1 callers
Function
unpackDescriptor
Receive a compressed byte slice and unpack it to a FileDescriptorProto
client/protoclient.go:75
↓ 1 callers
Function
validName
(field reflect.StructField)
docgenerator/generator.go:137
↓ 1 callers
Function
vetExtras
(extras []interface{})
helpers/helpers.go:175
↓ 1 callers
Function
waitForServerToBeReady
(t testing.TB, out *bufio.Reader)
helpers/helpers.go:96
↓ 1 callers
Method
watchLeaseChan
watchLeaseChan 监听租约keepalive返回失败的话重新生成租约
modules/binding_storage.go:122
↓ 1 callers
Method
watchLeaseChan
watchLeaseChan 监听续租的相应管道LeaseKeepAliveResponse 会收到续租相应的事件
cluster/etcd_service_discovery.go:123
Method
AddListener
AddListener adds a listener to etcd service discovery
cluster/etcd_service_discovery.go:238
Method
AddListener
AddListener mocks base method
cluster/mocks/service_discovery.go:87
Method
AddListener
AddListener indicates an expected call of AddListener
cluster/mocks/service_discovery.go:92
Method
AddPushResponse
AddPushResponse add a push response. Must be ladded before LoadInfo.
client/protoclient.go:479
Method
AddServer
AddServer mocks base method
cluster/mocks/cluster.go:247
← previous
next →
601–700 of 1,948, ranked by callers