_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c11300
train
// AppendRTMTo appends frontend round-trip metrics to an aggregate.
{ "resource": "" }
c11301
train
// syncServers syncs backend servers and rebalancer state.
{ "resource": "" }
c11302
train
// New returns a new connection counter instance
{ "resource": "" }
c11303
train
// RegisterStateChange implements conntracker.ConnectionTracker.
{ "resource": "" }
c11304
train
// Counts implements conntracker.ConnectionTracker.
{ "resource": "" }
c11305
train
// New creates a new server instance.
{ "resource": "" }
c11306
train
// Start starts the server to handle a list of specified hosts.
{ "resource": "" }
c11307
train
// OnHostsUpdated is supposed to be called whenever a list of hosts is updated, // or an OCSP notification for a host is received.
{ "resource": "" }
c11308
train
// Returns a GetCertificate function for this host based on AutoCert settings, // by generating an autocert manager for the host. // It optionally will staple the OCSP response to the cert when it is generated, // if OCSP stapling is enabled for the host.
{ "resource": "" }
c11309
train
// Returns a certificate based on a hosts KeyPair settings.
{ "resource": "" }
c11310
train
// This function extracts vulcan url from the command line regardless of it's position // this is a workaround, as cli libary does not support "superglobal" urls yet.
{ "resource": "" }
c11311
train
// NewWithOptions creates a GracefulServer instance with the specified options.
{ "resource": "" }
c11312
train
// New returns a new Trace plugin
{ "resource": "" }
c11313
train
// NewHandler creates a new http.Handler middleware
{ "resource": "" }
c11314
train
// String is a user-friendly representation of the handler
{ "resource": "" }
c11315
train
// FromOther creates and validates Trace plugin instance from serialized format
{ "resource": "" }
c11316
train
// FromCli creates a Trace plugin object from command line
{ "resource": "" }
c11317
train
// CliFlags is used to add command-line arguments to the CLI tool - vctl
{ "resource": "" }
c11318
train
// Clock is an optional argument to the New function, by default the system clock is used
{ "resource": "" }
c11319
train
// New returns a new instance of in-memory Staple resolver and cache
{ "resource": "" }
c11320
train
// CfgWithStats returns a backend server storage config along with round-trip // stats.
{ "resource": "" }
c11321
train
// New returns a new round-trip metrics collector instance.
{ "resource": "" }
c11322
train
// RTStats returns round-trip stats of the associated frontend.
{ "resource": "" }
c11323
train
// UpsertServer upserts a backend server to collect round-trip metrics for.
{ "resource": "" }
c11324
train
// RemoveServer removes a backend server from the list of servers that it // collects round-trip metrics for.
{ "resource": "" }
c11325
train
// AppendFeRTMTo appends frontend round-trip metrics to an aggregate.
{ "resource": "" }
c11326
train
// NewMiddleware vulcan library compatible middleware
{ "resource": "" }
c11327
train
// NewSpec check parameters and returns new specification for the middleware
{ "resource": "" }
c11328
train
// FromOther is used to read spec from the serialized format
{ "resource": "" }
c11329
train
// FromCli constructs the middleware from the command line arguments
{ "resource": "" }
c11330
train
// NewTLSConfig validates the TLSSettings and returns the tls.Config with the converted parameters
{ "resource": "" }
c11331
train
// NewTLSSessionCache validates parameters and creates a new TLS session cache
{ "resource": "" }
c11332
train
// Dispatches etcd key changes changes to the etcd to the matching functions
{ "resource": "" }
c11333
train
// NewBackend creates a new instance of the backend object
{ "resource": "" }
c11334
train
// NetErroRate calculates the amont of ntwork errors such as time outs and dropped connection // that occured in the given time window
{ "resource": "" }
c11335
train
// AppErrorRate calculates the ratio of 500 responses that designate internal server errors // to success responses - 2xx, it specifically not counts 4xx or any other than 500 error to avoid noisy results.
{ "resource": "" }
c11336
train
// Cfg returns engine.Server config of the backend server instance.
{ "resource": "" }
c11337
train
// NewSrvURLKey creates an SrvURLKey from a server URL.
{ "resource": "" }
c11338
train
// NewServer creates a backend server from a config fetched from a storage // engine.
{ "resource": "" }
c11339
train
// New creates a new backend instance from a config fetched from a storage // engine and proxy options. An initial list of backend servers can be provided.
{ "resource": "" }
c11340
train
// Key returns storage backend key.
{ "resource": "" }
c11341
train
// Update updates the instance configuration.
{ "resource": "" }
c11342
train
// UpsertServer upserts a new backend server.
{ "resource": "" }
c11343
train
// DeleteServer deletes a new backend server.
{ "resource": "" }
c11344
train
// Snapshot returns configured HTTP transport instance and a list of backend // servers. Due to copy-on-write semantic it is the returned server list is // immutable from callers prospective and it is efficient to call this function // as frequently as you want for it won't make excessive allocations.
{ "resource": "" }
c11345
train
// Server returns a backend server by a storage key if exists.
{ "resource": "" }
c11346
train
// NewProxy returns a new Proxy instance.
{ "resource": "" }
c11347
train
// NewListener wraps an existing listener for use with // GracefulServer. // // Note that you generally don't need to use this directly as // GracefulServer will automatically wrap any non-graceful listeners // supplied to it.
{ "resource": "" }
c11348
train
// Accept implements the Accept method in the Listener interface.
{ "resource": "" }
c11349
train
// Close tells the wrapped listener to stop listening. It is idempotent.
{ "resource": "" }
c11350
train
// NewListener creates a Listener which accepts connections from an inner // Listener and wraps each connection with Server. // The configuration config must be non-nil and must have // at least one certificate.
{ "resource": "" }
c11351
train
// initLogger initializes logger specified in the service options. This // function never fails. In case of any error a console logger with the text // formatter is initialized and the error details are logged as a warning.
{ "resource": "" }
c11352
train
// filesFromString de-serializes the file descriptors and turns them in the os.Files
{ "resource": "" }
c11353
train
// ExampleGeocoder demonstrates the different geocoding services
{ "resource": "" }
c11354
train
// Geocoder constructs LocationIQ geocoder
{ "resource": "" }
c11355
train
// Geocoder constructs data geocoder
{ "resource": "" }
c11356
train
// Geocoder creates a chain of Geocoders to lookup address and fallback on
{ "resource": "" }
c11357
train
// Geocoder constructs ArcGIS geocoder
{ "resource": "" }
c11358
train
// GeocoderWithURL constructs OpenStreetMap geocoder using a custom installation of Nominatim
{ "resource": "" }
c11359
train
// Response gets response from url
{ "resource": "" }
c11360
train
// ParseFloat is a helper to parse a string to a float
{ "resource": "" }
c11361
train
// Geocoder constructs HERE geocoder
{ "resource": "" }
c11362
train
// Locality checks different fields for the locality name
{ "resource": "" }
c11363
train
// Street checks different fields for the street name
{ "resource": "" }
c11364
train
// SetOption takes one or more option function and applies them in order to Term.
{ "resource": "" }
c11365
train
// Close closes the device and releases any associated resources.
{ "resource": "" }
c11366
train
// CBreakMode places the terminal into cbreak mode.
{ "resource": "" }
c11367
train
// RawMode places the terminal into raw mode.
{ "resource": "" }
c11368
train
// Speed sets the baud rate option for the terminal.
{ "resource": "" }
c11369
train
// SetSpeed sets the receive and transmit baud rates.
{ "resource": "" }
c11370
train
// Flush flushes both data received but not read, and data written but not transmitted.
{ "resource": "" }
c11371
train
// Restore restores the state of the terminal captured at the point that // the terminal was originally opened.
{ "resource": "" }
c11372
train
// Tiocmget returns the state of the MODEM bits.
{ "resource": "" }
c11373
train
// Tiocmset sets the state of the MODEM bits.
{ "resource": "" }
c11374
train
// Tiocmbis sets the indicated modem bits.
{ "resource": "" }
c11375
train
// Tiocmbic clears the indicated modem bits.
{ "resource": "" }
c11376
train
// Cfmakecbreak modifies attr for cbreak mode.
{ "resource": "" }
c11377
train
// Cfmakeraw modifies attr for raw mode.
{ "resource": "" }
c11378
train
// timeoutVals converts d into values suitable for termios VMIN and VTIME ctrl chars
{ "resource": "" }
c11379
train
// ReadTimeout sets the read timeout option for the terminal.
{ "resource": "" }
c11380
train
// SetReadTimeout sets the read timeout. // A zero value for d means read operations will not time out.
{ "resource": "" }
c11381
train
// FlowControl sets the flow control option for the terminal.
{ "resource": "" }
c11382
train
// SetFlowControl sets whether hardware flow control is enabled.
{ "resource": "" }
c11383
train
// Tcdrain waits until all output written to the object referred to by fd has been transmitted.
{ "resource": "" }
c11384
train
// Tiocoutq return the number of bytes in the output buffer.
{ "resource": "" }
c11385
train
// Pty returns a UNIX 98 pseudoterminal device. // Pty returns a pair of fds representing the master and slave pair.
{ "resource": "" }
c11386
train
// Cfgetispeed returns the input baud rate stored in the termios structure.
{ "resource": "" }
c11387
train
// Cfsetispeed sets the input baud rate stored in the termios structure.
{ "resource": "" }
c11388
train
// Cfgetospeed returns the output baud rate stored in the termios structure.
{ "resource": "" }
c11389
train
// Cfsetospeed sets the output baud rate stored in the termios structure.
{ "resource": "" }
c11390
train
// Tcsendbreak function transmits a continuous stream of zero-valued bits for // four-tenths of a second to the terminal referenced by fildes. The duration // parameter is ignored in this implementation.
{ "resource": "" }
c11391
train
// Tcflush discards data written to the object referred to by fd but not transmitted, or data received but not read, depending on the value of which.
{ "resource": "" }
c11392
train
// Buffered returns the number of bytes that have been written into the current buffer.
{ "resource": "" }
c11393
train
// SetupFlags adds multihash related options to given flagset.
{ "resource": "" }
c11394
train
// ParseError checks the parsed options for errors.
{ "resource": "" }
c11395
train
// strIn checks wither string a is in set.
{ "resource": "" }
c11396
train
// Check reads all the data in r, calculates its multihash, // and checks it matches h1
{ "resource": "" }
c11397
train
// Multihash reads all the data in r and calculates its multihash.
{ "resource": "" }
c11398
train
// FromHexString parses a hex-encoded multihash.
{ "resource": "" }
c11399
train
// FromB58String parses a B58-encoded multihash.
{ "resource": "" }