_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c11300 | // AppendRTMTo appends frontend round-trip metrics to an aggregate. | |
c11301 | // syncServers syncs backend servers and rebalancer state. | |
c11302 | // New returns a new connection counter instance | |
c11303 | // RegisterStateChange implements conntracker.ConnectionTracker. | |
c11304 | // Counts implements conntracker.ConnectionTracker. | |
c11305 | // New creates a new server instance. | |
c11306 | // Start starts the server to handle a list of specified hosts. | |
c11307 | // OnHostsUpdated is supposed to be called whenever a list of hosts is updated,
// or an OCSP notification for a host is received. | |
c11308 | // 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. | |
c11309 | // Returns a certificate based on a hosts KeyPair settings. | |
c11310 | // 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. | |
c11311 | // NewWithOptions creates a GracefulServer instance with the specified options. | |
c11312 | // New returns a new Trace plugin | |
c11313 | // NewHandler creates a new http.Handler middleware | |
c11314 | // String is a user-friendly representation of the handler | |
c11315 | // FromOther creates and validates Trace plugin instance from serialized format | |
c11316 | // FromCli creates a Trace plugin object from command line | |
c11317 | // CliFlags is used to add command-line arguments to the CLI tool - vctl | |
c11318 | // Clock is an optional argument to the New function, by default the system clock is used | |
c11319 | // New returns a new instance of in-memory Staple resolver and cache | |
c11320 | // CfgWithStats returns a backend server storage config along with round-trip
// stats. | |
c11321 | // New returns a new round-trip metrics collector instance. | |
c11322 | // RTStats returns round-trip stats of the associated frontend. | |
c11323 | // UpsertServer upserts a backend server to collect round-trip metrics for. | |
c11324 | // RemoveServer removes a backend server from the list of servers that it
// collects round-trip metrics for. | |
c11325 | // AppendFeRTMTo appends frontend round-trip metrics to an aggregate. | |
c11326 | // NewMiddleware vulcan library compatible middleware | |
c11327 | // NewSpec check parameters and returns new specification for the middleware | |
c11328 | // FromOther is used to read spec from the serialized format | |
c11329 | // FromCli constructs the middleware from the command line arguments | |
c11330 | // NewTLSConfig validates the TLSSettings and returns the tls.Config with the converted parameters | |
c11331 | // NewTLSSessionCache validates parameters and creates a new TLS session cache | |
c11332 | // Dispatches etcd key changes changes to the etcd to the matching functions | |
c11333 | // NewBackend creates a new instance of the backend object | |
c11334 | // NetErroRate calculates the amont of ntwork errors such as time outs and dropped connection
// that occured in the given time window | |
c11335 | // 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. | |
c11336 | // Cfg returns engine.Server config of the backend server instance. | |
c11337 | // NewSrvURLKey creates an SrvURLKey from a server URL. | |
c11338 | // NewServer creates a backend server from a config fetched from a storage
// engine. | |
c11339 | // 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. | |
c11340 | // Key returns storage backend key. | |
c11341 | // Update updates the instance configuration. | |
c11342 | // UpsertServer upserts a new backend server. | |
c11343 | // DeleteServer deletes a new backend server. | |
c11344 | // 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. | |
c11345 | // Server returns a backend server by a storage key if exists. | |
c11346 | // NewProxy returns a new Proxy instance. | |
c11347 | // 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. | |
c11348 | // Accept implements the Accept method in the Listener interface. | |
c11349 | // Close tells the wrapped listener to stop listening. It is idempotent. | |
c11350 | // 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. | |
c11351 | // 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. | |
c11352 | // filesFromString de-serializes the file descriptors and turns them in the os.Files | |
c11353 | // ExampleGeocoder demonstrates the different geocoding services | |
c11354 | // Geocoder constructs LocationIQ geocoder | |
c11355 | // Geocoder constructs data geocoder | |
c11356 | // Geocoder creates a chain of Geocoders to lookup address and fallback on | |
c11357 | // Geocoder constructs ArcGIS geocoder | |
c11358 | // GeocoderWithURL constructs OpenStreetMap geocoder using a custom installation of Nominatim | |
c11359 | // Response gets response from url | |
c11360 | // ParseFloat is a helper to parse a string to a float | |
c11361 | // Geocoder constructs HERE geocoder | |
c11362 | // Locality checks different fields for the locality name | |
c11363 | // Street checks different fields for the street name | |
c11364 | // SetOption takes one or more option function and applies them in order to Term. | |
c11365 | // Close closes the device and releases any associated resources. | |
c11366 | // CBreakMode places the terminal into cbreak mode. | |
c11367 | // RawMode places the terminal into raw mode. | |
c11368 | // Speed sets the baud rate option for the terminal. | |
c11369 | // SetSpeed sets the receive and transmit baud rates. | |
c11370 | // Flush flushes both data received but not read, and data written but not transmitted. | |
c11371 | // Restore restores the state of the terminal captured at the point that
// the terminal was originally opened. | |
c11372 | // Tiocmget returns the state of the MODEM bits. | |
c11373 | // Tiocmset sets the state of the MODEM bits. | |
c11374 | // Tiocmbis sets the indicated modem bits. | |
c11375 | // Tiocmbic clears the indicated modem bits. | |
c11376 | // Cfmakecbreak modifies attr for cbreak mode. | |
c11377 | // Cfmakeraw modifies attr for raw mode. | |
c11378 | // timeoutVals converts d into values suitable for termios VMIN and VTIME ctrl chars | |
c11379 | // ReadTimeout sets the read timeout option for the terminal. | |
c11380 | // SetReadTimeout sets the read timeout.
// A zero value for d means read operations will not time out. | |
c11381 | // FlowControl sets the flow control option for the terminal. | |
c11382 | // SetFlowControl sets whether hardware flow control is enabled. | |
c11383 | // Tcdrain waits until all output written to the object referred to by fd has been transmitted. | |
c11384 | // Tiocoutq return the number of bytes in the output buffer. | |
c11385 | // Pty returns a UNIX 98 pseudoterminal device.
// Pty returns a pair of fds representing the master and slave pair. | |
c11386 | // Cfgetispeed returns the input baud rate stored in the termios structure. | |
c11387 | // Cfsetispeed sets the input baud rate stored in the termios structure. | |
c11388 | // Cfgetospeed returns the output baud rate stored in the termios structure. | |
c11389 | // Cfsetospeed sets the output baud rate stored in the termios structure. | |
c11390 | // 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. | |
c11391 | // 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. | |
c11392 | // Buffered returns the number of bytes that have been written into the current buffer. | |
c11393 | // SetupFlags adds multihash related options to given flagset. | |
c11394 | // ParseError checks the parsed options for errors. | |
c11395 | // strIn checks wither string a is in set. | |
c11396 | // Check reads all the data in r, calculates its multihash,
// and checks it matches h1 | |
c11397 | // Multihash reads all the data in r and calculates its multihash. | |
c11398 | // FromHexString parses a hex-encoded multihash. | |
c11399 | // FromB58String parses a B58-encoded multihash. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.