_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c28000
train
// stompHeaderToMap converts STOMP header to broker friendly header
{ "resource": "" }
c28001
train
// defaults sets 'sane' STOMP default
{ "resource": "" }
c28002
train
// NewBroker returns a STOMP broker
{ "resource": "" }
c28003
train
// finishWithError end a request's monitoring session. If there is a span ongoing, it will // be ended.
{ "resource": "" }
c28004
train
// AuthTLS should be used to setup a secure authentication using TLS
{ "resource": "" }
c28005
train
// // MaxRecvMsgSize set the maximum size of message that client can receive. //
{ "resource": "" }
c28006
train
// // MaxSendMsgSize set the maximum size of message that client can send. //
{ "resource": "" }
c28007
train
// DeduplicationFunction sets the function used to create the deduplication string // for a given message
{ "resource": "" }
c28008
train
// GroupIDFunction sets the function used to create the group ID string for a // given message
{ "resource": "" }
c28009
train
// MaxReceiveMessages indicates how many messages a receive operation should pull // during any single call
{ "resource": "" }
c28010
train
// VisibilityTimeout controls how long a message is hidden from other queue consumers // before being put back. If a consumer does not delete the message, it will be put back // even if it was "processed"
{ "resource": "" }
c28011
train
// WaitTimeSeconds controls the length of long polling for available messages
{ "resource": "" }
c28012
train
// Client receives an instantiated instance of an SQS client which is used instead of initialising a new client
{ "resource": "" }
c28013
train
// NewClientWrapper creates a blocking side rate limiter
{ "resource": "" }
c28014
train
// NewHandlerWrapper creates a blocking server side rate limiter
{ "resource": "" }
c28015
train
// NewClientWrapper is a wrapper which roundrobins requests
{ "resource": "" }
c28016
train
// complete sets the response status and end time
{ "resource": "" }
c28017
train
// getIp naively returns an ip for the request
{ "resource": "" }
c28018
train
// newHTTP returns a http struct
{ "resource": "" }
c28019
train
// newSegment creates a new segment based on whether we're part of an existing flow
{ "resource": "" }
c28020
train
// NewClientWrapper returns a client Wrapper.
{ "resource": "" }
c28021
train
// NewCustomClientWrapper takes a gobreaker.Settings and BreakerMethod. Returns a client Wrapper.
{ "resource": "" }
c28022
train
// Call implements client.Client.Call.
{ "resource": "" }
c28023
train
// Publish implements client.Client.Publish.
{ "resource": "" }
c28024
train
// NewHandlerWrapper returns a server.HandlerWrapper // that adds tracing to incoming requests.
{ "resource": "" }
c28025
train
// NewSubscriberWrapper returns a server.SubscriberWrapper // that adds tracing to subscription requests.
{ "resource": "" }
c28026
train
// Publish checks if the topic exists and then publishes via google pubsub
{ "resource": "" }
c28027
train
// Subscribe registers a subscription to the given topic against the google pubsub api
{ "resource": "" }
c28028
train
// NewBroker creates a new google pubsub broker
{ "resource": "" }
c28029
train
// Options to be used to configure gRPC options
{ "resource": "" }
c28030
train
// // MaxMsgSize set the maximum message in bytes the server can receive and // send. Default maximum message size is 4 MB. //
{ "resource": "" }
c28031
train
// NewSelector returns a `SelectOption` that directs all request according to the given `keys`.
{ "resource": "" }
c28032
train
// Next returns a `Next` function which returns the next highest scoring node.
{ "resource": "" }
c28033
train
// ScoreNodes returns a score for each node found in the given services.
{ "resource": "" }
c28034
train
// ReadHeader reads the header from the wire.
{ "resource": "" }
c28035
train
// ReadBody reads the body of the message. It is assumed the value being // decoded into is a satisfies the msgp.Decodable interface.
{ "resource": "" }
c28036
train
// Write writes a message to the wire which contains the header followed by the body. // The body is assumed to satisfy the msgp.Encodable interface.
{ "resource": "" }
c28037
train
// NewError returns an Error with given code and message.
{ "resource": "" }
c28038
train
// newError returns an Error with auto-detected code for given message.
{ "resource": "" }
c28039
train
// Error returns JSON representation of Error.
{ "resource": "" }
c28040
train
// serviceName generates a valid service name for k8s labels
{ "resource": "" }
c28041
train
// Init allows reconfig of options
{ "resource": "" }
c28042
train
// Register sets a service selector label and an annotation with a // serialised version of the service passed in.
{ "resource": "" }
c28043
train
// Deregister nils out any things set in Register
{ "resource": "" }
c28044
train
// GetService will get all the pods with the given service selector, // and build services from the annotations.
{ "resource": "" }
c28045
train
// ListServices will list all the service names
{ "resource": "" }
c28046
train
// Watch returns a kubernetes watcher
{ "resource": "" }
c28047
train
// NewRegistry creates a kubernetes registry
{ "resource": "" }
c28048
train
// CheckPrefixFactory Creates a prefix checking function and stuff.
{ "resource": "" }
c28049
train
// Stop cancels the request
{ "resource": "" }
c28050
train
// NewBodyWatcher creates a k8s body watcher for // a given http request
{ "resource": "" }
c28051
train
// NewBroker creates a new gocloud pubsubBroker. // If the GCPProjectID option is set, Go Cloud uses its Google Cloud PubSub implementation. // If the RabbitURL option is set, Go Cloud uses its RabbitMQ implementation. // Otherwise, Go Cloud uses its in-memory implementation.
{ "resource": "" }
c28052
train
// Publish opens the topic if it hasn't been already, then publishes the message.
{ "resource": "" }
c28053
train
// topic returns the topic with the given name if this broker has // seen it before. Otherwise it opens a new topic.
{ "resource": "" }
c28054
train
// NewClientWrapper accepts an open tracing Trace and returns a Client Wrapper
{ "resource": "" }
c28055
train
// NewCallWrapper accepts an opentracing Tracer and returns a Call Wrapper
{ "resource": "" }
c28056
train
// NewHandlerWrapper accepts an opentracing Tracer and returns a Handler Wrapper
{ "resource": "" }
c28057
train
// NewSubscriberWrapper accepts an opentracing Tracer and returns a Subscriber Wrapper
{ "resource": "" }
c28058
train
// NewClientWrapper takes a rate limiter and wait flag and returns a client Wrapper.
{ "resource": "" }
c28059
train
// NewHandlerWrapper takes a rate limiter and wait flag and returns a client Wrapper.
{ "resource": "" }
c28060
train
// WithClient sets the XRay Client to use to send segments
{ "resource": "" }
c28061
train
// end a request's monitoring session. If there is a span ongoing, it will // be ended and metrics will be recorded.
{ "resource": "" }
c28062
train
// only parses first node
{ "resource": "" }
c28063
train
// build a cache of pods when the watcher starts.
{ "resource": "" }
c28064
train
// look through pod annotations, compare against cache if present // and return a list of results to send down the wire.
{ "resource": "" }
c28065
train
// handleEvent will taken an event from the k8s pods API and do the correct // things with the result, based on the local cache.
{ "resource": "" }
c28066
train
// Next will block until a new result comes in
{ "resource": "" }
c28067
train
// Stop will cancel any requests, and close channels
{ "resource": "" }
c28068
train
// NewClientWrapper returns a Client wrapped in tracer
{ "resource": "" }
c28069
train
// NewCallWrapper returns a Call Wrapper
{ "resource": "" }
c28070
train
// NewHandlerWrapper returns a Handler Wrapper
{ "resource": "" }
c28071
train
// NewSubscriberWrapper returns a Subscriber Wrapper
{ "resource": "" }
c28072
train
// Into decode body into `data`
{ "resource": "" }
c28073
train
// Options allow to inject a nats.Options struct for configuring // the nats connection
{ "resource": "" }
c28074
train
// NewClientByHost sets up a client by host
{ "resource": "" }
c28075
train
// NewClientInCluster should work similarily to the official api // NewInClient by setting up a client configuration for use within // a k8s pod.
{ "resource": "" }
c28076
train
// Outbound gets the outbound status
{ "resource": "" }
c28077
train
// Inbound gets the inbound status
{ "resource": "" }
c28078
train
// MessageRemote just echoes the given message
{ "resource": "" }
c28079
train
// NewMockNetworkEntity creates a new mock instance
{ "resource": "" }
c28080
train
// Push mocks base method
{ "resource": "" }
c28081
train
// Push indicates an expected call of Push
{ "resource": "" }
c28082
train
// ResponseMID mocks base method
{ "resource": "" }
c28083
train
// ResponseMID indicates an expected call of ResponseMID
{ "resource": "" }
c28084
train
// Kick mocks base method
{ "resource": "" }
c28085
train
// Kick indicates an expected call of Kick
{ "resource": "" }
c28086
train
// RemoteAddr indicates an expected call of RemoteAddr
{ "resource": "" }
c28087
train
// SendRequest mocks base method
{ "resource": "" }
c28088
train
// SendRequest indicates an expected call of SendRequest
{ "resource": "" }
c28089
train
// NewHandlerService creates and returns a new handler service
{ "resource": "" }
c28090
train
// Dispatch message to corresponding logic handler
{ "resource": "" }
c28091
train
// Handle handles messages from a conn
{ "resource": "" }
c28092
train
// DumpServices outputs all registered services
{ "resource": "" }
c28093
train
// Docs returns documentation for handlers
{ "resource": "" }
c28094
train
// EnqueueRPC enqueues rpc job to worker
{ "resource": "" }
c28095
train
// RegisterRPCJob registers a RPC job
{ "resource": "" }
c28096
train
// SendKickToUsers sends kick to an user array
{ "resource": "" }
c28097
train
// Receive a compressed byte slice and unpack it to a FileDescriptorProto
{ "resource": "" }
c28098
train
// Receive an array of descriptors in binary format. The function creates the // protobuffer from this data and associates it to the message.
{ "resource": "" }
c28099
train
// Receives each entry from the Unmarshal json from the Docs and read the inputs and // outputs associated with it. Return the output type, the input and the error.
{ "resource": "" }