_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c30500 | train | // Get the SSO start payload for the firewall | {
"resource": ""
} | ||
c30501 | train | // Send an SSO stop to the firewall if the transport mode is HTTP. Otherwise, this outputs a warning
// Will return the values from stopHttp for HTTP and no error if its syslog | {
"resource": ""
} | ||
c30502 | train | // Send an SSO stop using HTTP to the PaloAlto firewall
// Returns an error if it fails to get a valid reply from the firewall | {
"resource": ""
} | ||
c30503 | train | // Checks whether or not that request is authorized based on the path and method
// It will extract the token out of the Authorization header and call the appropriate method | {
"resource": ""
} | ||
c30504 | train | // Checks whether or not that request is authorized based on the path and method | {
"resource": ""
} | ||
c30505 | train | // ServeHTTP implements the httpserver.Handler interface and serves requests,
// setting headers on the response according to the configured rules. | {
"resource": ""
} | ||
c30506 | train | // targetStrip strips "targetstrip" labels from the left side of the fully qualified name. | {
"resource": ""
} | ||
c30507 | train | // Send a dummy SSO start
// This will always succeed without any error | {
"resource": ""
} | ||
c30508 | train | // Send a dummy SSO stop
// This will always succeed without any error | {
"resource": ""
} | ||
c30509 | train | // Create a new logger from an existing one with the same confiuration | {
"resource": ""
} | ||
c30510 | train | // Add a handler to a logger in the context | {
"resource": ""
} | ||
c30511 | train | // Initialize the logger in a context | {
"resource": ""
} | ||
c30512 | train | // Get the logger from a context
// If the logger isn't there this will panic so make sure its there before calling this | {
"resource": ""
} | ||
c30513 | train | // Create a new logger in a context
// Will ensure that its initialized with the PID of the current process | {
"resource": ""
} | ||
c30514 | train | // Transfer the logger from a context to another | {
"resource": ""
} | ||
c30515 | train | // Generate a new UUID for the current request and add it to the context | {
"resource": ""
} | ||
c30516 | train | // panic while logging a problem as critical | {
"resource": ""
} | ||
c30517 | train | // NewTCP returns a TCP writer. | {
"resource": ""
} | ||
c30518 | train | // Flush the remaining frames. | {
"resource": ""
} | ||
c30519 | train | // get is a wrapper for client.Get that uses SingleInflight to suppress multiple outstanding queries. | {
"resource": ""
} | ||
c30520 | train | // Create JSON-RPC request body | {
"resource": ""
} | ||
c30521 | train | // Make a JSON-RPC request
// Returns an error unless the server acknowledges success | {
"resource": ""
} | ||
c30522 | train | // Send an SSO start to the JSON-RPC server | {
"resource": ""
} | ||
c30523 | train | // Send an SSO stop to the JSON-RPC server | {
"resource": ""
} | ||
c30524 | train | // NewProxy creates a new instance of proxy.
// It sets request logger using rLogPath as output file or os.Stdout by default.
// If whitePath of blackPath is not empty they are parsed to set endpoint lists. | {
"resource": ""
} | ||
c30525 | train | // checkEndpointList looks if r is in whitelist or blackllist
// returns true if endpoint is allowed | {
"resource": ""
} | ||
c30526 | train | // Configure add default target in the deny list | {
"resource": ""
} | ||
c30527 | train | // addFqdnToList add all the passthrough fqdn in a list | {
"resource": ""
} | ||
c30528 | train | // checkProxyPassthrough compare the host to the list of regex | {
"resource": ""
} | ||
c30529 | train | // Write implements io.Writer. If a write would cause the log file to be larger
// than MaxSize, the file is closed, renamed to include a timestamp of the
// current time, and a new log file is created using the original log file name.
// If the length of the write is greater than MaxSize, an error is returned. | {
"resource": ""
} | ||
c30530 | train | // Rotate causes Logger to close the existing log file and immediately create a
// new one. This is a helper function for applications that want to initiate
// rotations outside of the normal rotation rules, such as in response to
// SIGHUP. After rotating, this initiates compression and removal of old log
// files a... | {
"resource": ""
} | ||
c30531 | train | // openExistingOrNew opens the logfile if it exists and if the current write
// would not put it over MaxSize. If there is no such file or the write would
// put it over the MaxSize, a new file is created. | {
"resource": ""
} | ||
c30532 | train | // filename generates the name of the logfile from the current time. | {
"resource": ""
} | ||
c30533 | train | // millRunOnce performs compression and removal of stale log files.
// Log files are compressed if enabled via configuration and old log
// files are removed, keeping at most l.MaxBackups files, as long as
// none of them are older than MaxAge. | {
"resource": ""
} | ||
c30534 | train | // mill performs post-rotation compression and removal of stale log files,
// starting the mill goroutine if necessary. | {
"resource": ""
} | ||
c30535 | train | // oldLogFiles returns the list of backup log files stored in the same
// directory as the current log file, sorted by ModTime | {
"resource": ""
} | ||
c30536 | train | // timeFromName extracts the formatted time from the filename by stripping off
// the filename's prefix and extension. This prevents someone's filename from
// confusing time.parse. | {
"resource": ""
} | ||
c30537 | train | // max returns the maximum size in bytes of log files before rolling. | {
"resource": ""
} | ||
c30538 | train | // prefixAndExt returns the filename part and extension part from the Logger's
// filename. | {
"resource": ""
} | ||
c30539 | train | // compressLogFile compresses the given log file, removing the
// uncompressed log file if successful. | {
"resource": ""
} | ||
c30540 | train | // Get reads entry for the key.
// It returns an ErrEntryNotFound when
// no entry exists for the given key. | {
"resource": ""
} | ||
c30541 | train | // Set saves entry under the key | {
"resource": ""
} | ||
c30542 | train | // Delete removes the key | {
"resource": ""
} | ||
c30543 | train | // Reset empties all cache shards | {
"resource": ""
} | ||
c30544 | train | // Len computes number of entries in cache | {
"resource": ""
} | ||
c30545 | train | // Capacity returns amount of bytes store in the cache. | {
"resource": ""
} | ||
c30546 | train | // Stats returns cache's statistics | {
"resource": ""
} | ||
c30547 | train | // DefaultConfig initializes config with default values.
// When load for BigCache can be predicted in advance then it is better to use custom config. | {
"resource": ""
} | ||
c30548 | train | // initialShardSize computes initial shard size | {
"resource": ""
} | ||
c30549 | train | // maximumShardSize computes maximum shard size | {
"resource": ""
} | ||
c30550 | train | // OnRemoveFilterSet sets which remove reasons will trigger a call to OnRemoveWithReason.
// Filtering out reasons prevents bigcache from unwrapping them, which saves cpu. | {
"resource": ""
} | ||
c30551 | train | // index for stats handle | {
"resource": ""
} | ||
c30552 | train | // returns the cache's statistics. | {
"resource": ""
} | ||
c30553 | train | // chain load middleware services. | {
"resource": ""
} | ||
c30554 | train | // middleware for request length metrics. | {
"resource": ""
} | ||
c30555 | train | // SetNext moves to next element and returns true if it exists. | {
"resource": ""
} | ||
c30556 | train | // Value returns current value from the iterator | {
"resource": ""
} | ||
c30557 | train | // handles get requests. | {
"resource": ""
} | ||
c30558 | train | // delete cache objects. | {
"resource": ""
} | ||
c30559 | train | // Sum64 gets the string and returns its uint64 hash value. | {
"resource": ""
} | ||
c30560 | train | // NewBytesQueue initialize new bytes queue.
// Initial capacity is used in bytes array allocation
// When verbose flag is set then information about memory allocation are printed | {
"resource": ""
} | ||
c30561 | train | // Reset removes all entries from queue | {
"resource": ""
} | ||
c30562 | train | // Push copies entry at the end of queue and moves tail pointer. Allocates more space if needed.
// Returns index for pushed data or error if maximum size queue limit is reached. | {
"resource": ""
} | ||
c30563 | train | // Pop reads the oldest entry from queue and moves head pointer to the next one | {
"resource": ""
} | ||
c30564 | train | // Peek reads the oldest entry from list without moving head pointer | {
"resource": ""
} | ||
c30565 | train | // Get reads entry from index | {
"resource": ""
} | ||
c30566 | train | // peekCheckErr is identical to peek, but does not actually return any data | {
"resource": ""
} | ||
c30567 | train | // NewLogFile creates a new LogFile. The file is optional - it will be created if needed. | {
"resource": ""
} | ||
c30568 | train | // Rotate renames old log file, creates new one, switches log and closes the old file. | {
"resource": ""
} | ||
c30569 | train | // CreatePidFile opens the named file, applies exclusive lock and writes
// current process id to file. | {
"resource": ""
} | ||
c30570 | train | // OpenLockFile opens the named file with flags os.O_RDWR|os.O_CREATE and specified perm.
// If successful, function returns LockFile for opened file. | {
"resource": ""
} | ||
c30571 | train | // ReadPidFile reads process id from file with give name and returns pid.
// If unable read from a file, returns error. | {
"resource": ""
} | ||
c30572 | train | // WritePid writes current process id to an open file. | {
"resource": ""
} | ||
c30573 | train | // ReadPid reads process id from file and returns pid.
// If unable read from a file, returns error. | {
"resource": ""
} | ||
c30574 | train | // Remove removes lock, closes and removes an open file. | {
"resource": ""
} | ||
c30575 | train | // AddCommand is wrapper on AddFlag and SetSigHandler functions. | {
"resource": ""
} | ||
c30576 | train | // SendCommands sends active signals to the given process. | {
"resource": ""
} | ||
c30577 | train | // ActiveFlags returns flags that has the state 'set'. | {
"resource": ""
} | ||
c30578 | train | // SetSigHandler sets handler for the given signals.
// SIGTERM has the default handler, he returns ErrStop. | {
"resource": ""
} | ||
c30579 | train | // ServeSignals calls handlers for system signals. | {
"resource": ""
} | ||
c30580 | train | // Search searches daemons process by given in context pid file name.
// If success returns pointer on daemons os.Process structure,
// else returns error. Returns nil if filename is empty. | {
"resource": ""
} | ||
c30581 | train | // Normalize expectedValue so json and yaml are the same | {
"resource": ""
} | ||
c30582 | train | // detectPackage adds the correct package creation function to a System struct | {
"resource": ""
} | ||
c30583 | train | // detectService adds the correct service creation function to a System struct | {
"resource": ""
} | ||
c30584 | train | // HasCommand returns whether or not an executable by this name is on the PATH. | {
"resource": ""
} | ||
c30585 | train | // Reads json file returning GossConfig | {
"resource": ""
} | ||
c30586 | train | // Reads json byte array returning GossConfig | {
"resource": ""
} | ||
c30587 | train | // Reads json file recursively returning string | {
"resource": ""
} | ||
c30588 | train | // Outputers returns a sorted list of the names of the registered outputers. | {
"resource": ""
} | ||
c30589 | train | // A and AAAA record lookup - similar to net.LookupHost | {
"resource": ""
} | ||
c30590 | train | // CNAME record lookup | {
"resource": ""
} | ||
c30591 | train | // MX record lookup | {
"resource": ""
} | ||
c30592 | train | // NS record lookup | {
"resource": ""
} | ||
c30593 | train | // SRV record lookup | {
"resource": ""
} | ||
c30594 | train | // TXT record lookup | {
"resource": ""
} | ||
c30595 | train | // PTR record lookup | {
"resource": ""
} | ||
c30596 | train | // CAA record lookup | {
"resource": ""
} | ||
c30597 | train | // Stories returns slice of StoryMedia | {
"resource": ""
} | ||
c30598 | train | // New creates Instagram structure | {
"resource": ""
} | ||
c30599 | train | // SetProxy sets proxy for connection. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.