MCPcopy Create free account

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

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

↓ 171 callersMethodError
(args ...interface{})
logger/logger.go:37
↓ 98 callersMethodMarshal
(interface{})
serialize/serializer.go:29
↓ 93 callersFunctionNew
New returns a new session instance a NetworkEntity is a low-level network instance
session/session.go:115
↓ 83 callersMethodCall
(ctx context.Context, rpcType protos.RPCType, route *route.Route, session *session.Session, msg *message.Messa
cluster/cluster.go:49
↓ 82 callersMethodErrorf
(format string, args ...interface{})
logger/logger.go:38
↓ 68 callersMethodUID
UID returns uid that bind to current session
session/session.go:234
↓ 67 callersMethodSet
Set associates value with the key in session storage
session/session.go:377
↓ 66 callersMethodUnmarshal
([]byte, interface{})
serialize/serializer.go:34
↓ 56 callersFunctiongetConfig
(conf ...*viper.Viper)
cluster/etcd_service_discovery_test.go:61
↓ 53 callersFunctionShouldEventuallyReceive
ShouldEventuallyReceive should asserts that eventually channel c receives a value
helpers/helpers.go:206
↓ 48 callersMethodClose
()
session/session.go:43
↓ 44 callersMethodDebugf
(format string, args ...interface{})
logger/logger.go:34
↓ 38 callersMethodReportGauge
(metric string, tags map[string]string, value float64)
metrics/reporter_interfaces.go:27
↓ 36 callersFunctiongetServer
()
cluster/nats_rpc_common_test.go:33
↓ 35 callersMethodID
ID returns the session id
session/session.go:229
↓ 34 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
mocks/net.go:81
↓ 34 callersMethodString
()
service/handler_test.go:61
↓ 33 callersFunctionConfigure
Configure configures the app
app.go:119
↓ 32 callersFunctionNewAgent
NewAgent create new agent instance
agent/agent.go:98
↓ 32 callersFunctionNewMessagesEncoder
NewMessagesEncoder returns a new message encoder
conn/message/message_encoder.go:41
↓ 31 callersMethodSendRequest
(ctx context.Context, serverID, route string, v interface{})
session/session.go:46
↓ 31 callersMethodString
()
protos/msg.pb.go:62
↓ 30 callersFunctionNewRoute
NewRoute creates a new route
route/route.go:47
↓ 29 callersFunctionNewMockNetworkEntity
NewMockNetworkEntity creates a new mock instance
session/mocks/session.go:27
↓ 28 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
metrics/mocks/reporter.go:32
↓ 28 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
serialize/mocks/serializer.go:31
↓ 27 callersMethodString
String, implementation for Stringer interface
agent/agent.go:237
↓ 27 callersMethodWarnf
(format string, args ...interface{})
logger/logger.go:46
↓ 26 callersMethodInt
Int returns the value associated with the key as a int.
session/session.go:407
↓ 25 callersMethodRemoteAddr
()
session/session.go:45
↓ 25 callersMethodShort
Short transforms the route into a string without the server type
route/route.go:60
↓ 25 callersMethodString
()
examples/demo/protos/cluster.pb.go:107
↓ 25 callersFunctioninitApp
()
app_test.go:109
↓ 23 callersFunctionShouldEventuallyReturn
ShouldEventuallyReturn asserts that eventually the return of f should be v, timeouts: 0 - evaluation interval, 1 - timeout
helpers/helpers.go:276
↓ 23 callersFunctionWithName
WithName used to rename component name 构建一个闭包函数去修改组件名字
component/options.go:34
↓ 22 callersMethodConnectTo
(addr string)
client/pitayaclient.go:28
↓ 22 callersFunctionGetFreePort
GetFreePort returns a free port
helpers/helpers.go:24
↓ 22 callersMethodGetInt
GetInt returns an int from the inner config
config/config.go:143
↓ 22 callersMethodInfof
(format string, args ...interface{})
logger/logger.go:42
↓ 22 callersFunctionNew
New returns a new client
client/client.go:105
↓ 21 callersMethodBind
Bind bind UID to current session
session/session.go:280
↓ 21 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
session/mocks/session.go:34
↓ 21 callersMethodEncode
(message *Message)
conn/message/message_encoder.go:32
↓ 21 callersMethodFatal
(format ...interface{})
logger/logger.go:29
↓ 21 callersFunctionGetSessionFromCtx
GetSessionFromCtx retrieves a session from a given context 从ctx的保存的数据中获取session
app.go:554
↓ 21 callersFunctionNewNatsRPCServer
NewNatsRPCServer ctor
cluster/nats_rpc_server.go:64
↓ 21 callersMethodWarn
(args ...interface{})
logger/logger.go:45
↓ 21 callersFunctionWithNameFunc
WithNameFunc override handler name by specific function 构建一个闭包修改组件的handler name such as: strings.ToUpper/strings.ToLower
component/options.go:42
↓ 21 callersFunctionheartbeatAndHandshakeMocks
(mockEncoder *codecmocks.MockPacketEncoder)
agent/agent_test.go:56
↓ 20 callersMethodDisconnect
()
client/pitayaclient.go:30
↓ 20 callersFunctionError
Error creates a new error with a code, message and metadata
app.go:548
↓ 20 callersFunctionGetTestNatsServer
GetTestNatsServer gets a test nats server
helpers/helpers.go:56
↓ 20 callersFunctionGroupAddMember
GroupAddMember adds UID to group
group.go:92
↓ 20 callersFunctionNewConfig
NewConfig creates a new config with a given viper config if given
config/config.go:37
↓ 20 callersFunctionNewPomeloPacketEncoder
NewPomeloPacketEncoder ctor
conn/codec/pomelo_packet_encoder.go:32
↓ 20 callersFunctionStartServer
StartServer starts a server
helpers/helpers.go:108
↓ 20 callersMethodString
()
session/session_test.go:57
↓ 19 callersMethodGetDuration
GetDuration returns a duration from the inner config
config/config.go:133
↓ 19 callersFunctionGroupCreate
GroupCreate creates a group
group.go:49
↓ 19 callersMethodShutdown
()
component/component.go:28
↓ 18 callersMethodString
String mocks base method
mocks/net.go:51
↓ 17 callersFunctionNewNatsRPCClient
NewNatsRPCClient ctor
cluster/nats_rpc_client.go:58
↓ 17 callersFunctionNewTCPAcceptor
NewTCPAcceptor creates a new instance of tcp acceptor
acceptor/tcp_acceptor.go:42
↓ 16 callersFunctionFinishSpan
FinishSpan finishes a span retrieved from the given context and logs the error if it exists
tracing/span.go:110
↓ 15 callersMethodDebug
(args ...interface{})
logger/logger.go:33
↓ 15 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
mocks/net.go:34
↓ 15 callersMethodGetString
GetString returns a string from the inner config
config/config.go:138
↓ 15 callersFunctionNewRemoteService
NewRemoteService creates and return a new RemoteService
service/remote.go:64
↓ 15 callersFunctionNewSerializer
NewSerializer returns a new Serializer.
serialize/json/json.go:31
↓ 15 callersFunctionRegister
Register register a component with options
component.go:39
↓ 15 callersFunctionReportTimingFromCtx
ReportTimingFromCtx reports the latency from the context
metrics/report.go:35
↓ 15 callersMethodString
String transforms the route into a string
route/route.go:52
↓ 14 callersMethodFatalf
(format string, args ...interface{})
logger/logger.go:30
↓ 14 callersFunctionGetConfig
GetConfig gets the pitaya config instance
app.go:236
↓ 14 callersFunctionGetTestEtcd
GetTestEtcd gets a test in memory etcd server
helpers/helpers.go:65
↓ 14 callersMethodGroupCreate
(ctx context.Context, groupName string)
groups/group_service.go:14
↓ 14 callersMethodKick
(ctx context.Context)
session/session.go:44
↓ 14 callersFunctionNew
New returns the router
router/router.go:52
↓ 14 callersFunctionNewServer
NewServer ctor
cluster/server.go:40
↓ 14 callersFunctionNewWSAcceptor
NewWSAcceptor returns a new instance of WSAcceptor
acceptor/ws_acceptor.go:45
↓ 14 callersMethodWrite
Write writes data to the connection. Write can be made to time out and return an Error with Timeout() == true after a fixed time limit; see SetDeadlin
acceptor/ws_acceptor.go:212
↓ 13 callersMethodGroupAddMember
(ctx context.Context, groupName, uid string)
groups/group_service.go:11
↓ 13 callersMethodJoin
Join room
examples/demo/chat/main.go:69
↓ 13 callersFunctionReadFile
ReadFile test helper
helpers/helpers.go:81
↓ 13 callersMethodReportSummary
(metric string, tags map[string]string, value float64)
metrics/reporter_interfaces.go:26
↓ 13 callersFunctiongetEtcdSD
(t *testing.T, config *config.Config, server *Server, cli *clientv3.Client)
cluster/etcd_service_discovery_test.go:66
↓ 13 callersFunctiongroupKey
(groupName string)
groups/etcd_group_service.go:67
↓ 12 callersFunctionAddAcceptor
AddAcceptor adds a new acceptor to app AddAcceptor添加一个接收器处理网络连接
app.go:192
↓ 12 callersMethodGetMsg
()
protos/error.pb.go:61
↓ 12 callersMethodGetServer
(id string)
cluster/service_discovery.go:30
↓ 12 callersFunctionGetSessionByUID
GetSessionByUID return a session bound to an user id
session/session.go:136
↓ 12 callersFunctionNewHandlerService
NewHandlerService creates and returns a new handler service
service/handler.go:84
↓ 12 callersMethodPush
(route string, v interface{})
session/session.go:41
↓ 12 callersMethodRead
(b []byte)
acceptorwrapper/rate_limiter.go:70
↓ 12 callersFunctionRegisterRemote
RegisterRemote register a remote component with options
component.go:44
↓ 12 callersFunctionsetupNatsConn
(connectString string, appDieChan chan bool, options ...nats.Option)
cluster/nats_rpc_common.go:34
↓ 11 callersMethodGet
Get returns an interface from the inner config
config/config.go:158
↓ 11 callersFunctionGroupBroadcast
GroupBroadcast pushes the message to all members inside group
group.go:64
↓ 11 callersFunctionSetSerializer
SetSerializer customize application serializer, which automatically Marshal and UnMarshal handler payload 设置序列化
app.go:262
↓ 11 callersFunctionStart
Start starts the app
app.go:349
next →1–100 of 1,948, ranked by callers