_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c28100
train
// Get recursively all protos needed in a Unmarshal json.
{ "resource": "" }
c28101
train
// Return the basic structure for the ProtoClient struct.
{ "resource": "" }
c28102
train
// NewProto returns a new protoclient with the auto documentation route.
{ "resource": "" }
c28103
train
// NewWithDescriptor returns a new protoclient with the descriptors route and // auto documentation route.
{ "resource": "" }
c28104
train
// LoadServerInfo load commands information from the server. Addr is the // server address.
{ "resource": "" }
c28105
train
// Disconnect the client
{ "resource": "" }
c28106
train
// Wait for new messages from the server or the connection end. If the menssage // has a response.Route, it decodes based on it. If not, it will try to decode // the menssage using the last expected response.
{ "resource": "" }
c28107
train
// LoadInfo load commands information form ProtoBufferInfo
{ "resource": "" }
c28108
train
// AddPushResponse add a push response. Must be ladded before LoadInfo.
{ "resource": "" }
c28109
train
// NewMockAddr creates a new mock instance
{ "resource": "" }
c28110
train
// NewMockConn creates a new mock instance
{ "resource": "" }
c28111
train
// Read indicates an expected call of Read
{ "resource": "" }
c28112
train
// LocalAddr mocks base method
{ "resource": "" }
c28113
train
// SetReadDeadline indicates an expected call of SetReadDeadline
{ "resource": "" }
c28114
train
// SetWriteDeadline mocks base method
{ "resource": "" }
c28115
train
// NewMockPitayaClient creates a new mock instance
{ "resource": "" }
c28116
train
// PushToUser indicates an expected call of PushToUser
{ "resource": "" }
c28117
train
// NewMockPitayaServer creates a new mock instance
{ "resource": "" }
c28118
train
// PushToUser mocks base method
{ "resource": "" }
c28119
train
// NewUniqueSession creates a new unique session module
{ "resource": "" }
c28120
train
// OnUserBind method should be called when a user binds a session in remote servers
{ "resource": "" }
c28121
train
// Init initializes the module
{ "resource": "" }
c28122
train
// NewBinary creates a new binary module with the given path
{ "resource": "" }
c28123
train
// Init initializes the binary
{ "resource": "" }
c28124
train
// Shutdown shutdowns the binary module
{ "resource": "" }
c28125
train
// GetPrometheusReporter gets the prometheus reporter singleton
{ "resource": "" }
c28126
train
// ReportSummary reports a summary metric
{ "resource": "" }
c28127
train
// ReportCount reports a summary metric
{ "resource": "" }
c28128
train
// ReportGauge reports a gauge metric
{ "resource": "" }
c28129
train
// ensureLabels checks if labels contains the additionalLabels values, // otherwise adds them with the default values
{ "resource": "" }
c28130
train
// Configure starts workers and register rpc job
{ "resource": "" }
c28131
train
// ServerDiscovery returns a serverID="", meaning any server // is ok
{ "resource": "" }
c28132
train
// RPC calls pitaya's rpc
{ "resource": "" }
c28133
train
// GetArgReply returns reply and arg of LogRemote, // since we have no other methods in this example
{ "resource": "" }
c28134
train
// NewMockModule creates a new mock instance
{ "resource": "" }
c28135
train
// AfterInit indicates an expected call of AfterInit
{ "resource": "" }
c28136
train
// NewMockBindingStorage creates a new mock instance
{ "resource": "" }
c28137
train
// GetUserFrontendID mocks base method
{ "resource": "" }
c28138
train
// GetUserFrontendID indicates an expected call of GetUserFrontendID
{ "resource": "" }
c28139
train
// PutBinding mocks base method
{ "resource": "" }
c28140
train
// ProtoDescriptors returns the descriptor for a given message name or .proto file
{ "resource": "" }
c28141
train
// NewMockPacketDecoder creates a new mock instance
{ "resource": "" }
c28142
train
// Decode mocks base method
{ "resource": "" }
c28143
train
// Decode indicates an expected call of Decode
{ "resource": "" }
c28144
train
// NewMockRPCServer creates a new mock instance
{ "resource": "" }
c28145
train
// SetPitayaServer mocks base method
{ "resource": "" }
c28146
train
// SetPitayaServer indicates an expected call of SetPitayaServer
{ "resource": "" }
c28147
train
// NewMockRPCClient creates a new mock instance
{ "resource": "" }
c28148
train
// Send indicates an expected call of Send
{ "resource": "" }
c28149
train
// SendPush mocks base method
{ "resource": "" }
c28150
train
// SendPush indicates an expected call of SendPush
{ "resource": "" }
c28151
train
// SendKick mocks base method
{ "resource": "" }
c28152
train
// SendKick indicates an expected call of SendKick
{ "resource": "" }
c28153
train
// BroadcastSessionBind mocks base method
{ "resource": "" }
c28154
train
// BroadcastSessionBind indicates an expected call of BroadcastSessionBind
{ "resource": "" }
c28155
train
// Call mocks base method
{ "resource": "" }
c28156
train
// NewMockSDListener creates a new mock instance
{ "resource": "" }
c28157
train
// AddServer mocks base method
{ "resource": "" }
c28158
train
// RemoveServer mocks base method
{ "resource": "" }
c28159
train
// RemoveServer indicates an expected call of RemoveServer
{ "resource": "" }
c28160
train
// NewMockRemoteBindingListener creates a new mock instance
{ "resource": "" }
c28161
train
// OnUserBind mocks base method
{ "resource": "" }
c28162
train
// OnUserBind indicates an expected call of OnUserBind
{ "resource": "" }
c28163
train
// LogRemote logs argument when called
{ "resource": "" }
c28164
train
// GetFromPropagateCtx get a value from the propagate
{ "resource": "" }
c28165
train
// FromMap creates a new context from a map with propagated values
{ "resource": "" }
c28166
train
// Encode returns the given propagatable context encoded in binary format
{ "resource": "" }
c28167
train
// Decode returns a context given a binary encoded message
{ "resource": "" }
c28168
train
// renewLease reestablishes connection with etcd
{ "resource": "" }
c28169
train
// AddListener adds a listener to etcd service discovery
{ "resource": "" }
c28170
train
// GetServersByType returns a slice with all the servers of a certain type
{ "resource": "" }
c28171
train
// GetServers returns a slice with all the servers
{ "resource": "" }
c28172
train
// GetServer returns a server given it's id
{ "resource": "" }
c28173
train
// Init starts the service discovery client
{ "resource": "" }
c28174
train
// SyncServers gets all servers from etcd
{ "resource": "" }
c28175
train
// revoke prevents Pitaya from crashing when etcd is not available
{ "resource": "" }
c28176
train
// NewMockRPCJob creates a new mock instance
{ "resource": "" }
c28177
train
// GetArgReply mocks base method
{ "resource": "" }
c28178
train
// GetArgReply indicates an expected call of GetArgReply
{ "resource": "" }
c28179
train
// RPC mocks base method
{ "resource": "" }
c28180
train
// RPC indicates an expected call of RPC
{ "resource": "" }
c28181
train
// ServerDiscovery mocks base method
{ "resource": "" }
c28182
train
// Validate is the the function responsible for validating the 'in' parameter // based on the struct tags the parameter has. // This function has the pipeline.Handler signature so // it is possible to use it as a pipeline function
{ "resource": "" }
c28183
train
// Configure configures the app
{ "resource": "" }
c28184
train
// AddAcceptor adds a new acceptor to app
{ "resource": "" }
c28185
train
// GetServerByID returns the server with the specified id
{ "resource": "" }
c28186
train
// GetServersByType get all servers of type
{ "resource": "" }
c28187
train
// AddMetricsReporter to be used
{ "resource": "" }
c28188
train
// SetDictionary sets routes map
{ "resource": "" }
c28189
train
// Error creates a new error with a code, message and metadata
{ "resource": "" }
c28190
train
// GetSessionFromCtx retrieves a session from a given context
{ "resource": "" }
c28191
train
// GetDefaultLoggerFromCtx returns the default logger from the given context
{ "resource": "" }
c28192
train
// AddMetricTagsToPropagateCtx adds a key and metric tags that will // be propagated through RPC calls. Use the same tags that are at // 'pitaya.metrics.additionalTags' config
{ "resource": "" }
c28193
train
// GetFromPropagateCtx adds a key and value that came through RPC calls
{ "resource": "" }
c28194
train
// ExtractSpan retrieves an opentracing span context from the given context // The span context can be received directly or via an RPC call
{ "resource": "" }
c28195
train
// Documentation returns handler and remotes documentacion
{ "resource": "" }
c28196
train
// AddGRPCInfoToMetadata adds host, external host and // port into metadata
{ "resource": "" }
c28197
train
// StartWorker configures, starts and returns pitaya worker
{ "resource": "" }
c28198
train
// RegisterRPCJob registers rpc job to execute jobs with retries
{ "resource": "" }
c28199
train
// NewService creates a new service
{ "resource": "" }