_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c15800 | train | // notify a non-recoverable error that terminates the scanning. | {
"resource": ""
} | ||
c15801 | train | // convert the reader to a rune reader if required. | {
"resource": ""
} | ||
c15802 | train | // clone and return parser current state. | {
"resource": ""
} | ||
c15803 | train | // init is a Visitor, which is used with the Walk function
// The purpose of this function is to initialize the reference
// maps rules, ruleUsesRules and ruleUsedByRules. | {
"resource": ""
} | ||
c15804 | train | // Add element to map of maps, initialize the inner map
// if necessary. | {
"resource": ""
} | ||
c15805 | train | // Parse parses the data from the reader r and generates the AST
// or returns an error if it fails. The filename is used as information
// in the error messages. | {
"resource": ""
} | ||
c15806 | train | // NewLogger returns a new zap logger that implements the Logger interface. | {
"resource": ""
} | ||
c15807 | train | // NewHealthcheck creates a handler that responds to healthcheck requests.
// If userAgent is set to a non-empty string, it will use that user agent to
// differentiate between healthcheck requests and non-healthcheck requests.
// Otherwise, it will treat all requests as healthcheck requests. | {
"resource": ""
} | ||
c15808 | train | // NewAccessLog creates a new handler that handles logging requests to the
// access log | {
"resource": ""
} | ||
c15809 | train | // NewRouteService creates a handler responsible for handling route services | {
"resource": ""
} | ||
c15810 | train | // NewZipkin creates a new handler that sets Zipkin headers on requests | {
"resource": ""
} | ||
c15811 | train | // BuildB3SingleHeader assembles the B3 single header based on existing trace
// values | {
"resource": ""
} | ||
c15812 | train | // HeadersToLog returns headers that should be logged in the access logs and
// includes Zipkin headers in this set if necessary | {
"resource": ""
} | ||
c15813 | train | // WriteIntValue writes an int to the buffer | {
"resource": ""
} | ||
c15814 | train | // WriteDashOrStringValue writes an int or a "-" to the buffer if the int is
// equal to 0 | {
"resource": ""
} | ||
c15815 | train | // WriteDashOrStringValue writes a float or a "-" to the buffer if the float is
// 0 or lower | {
"resource": ""
} | ||
c15816 | train | // WriteStringValues always writes quoted strings to the buffer | {
"resource": ""
} | ||
c15817 | train | // WriteDashOrStringValue writes quoted strings or a "-" if the string is empty | {
"resource": ""
} | ||
c15818 | train | // WriteTo allows the AccessLogRecord to implement the io.WriterTo interface | {
"resource": ""
} | ||
c15819 | train | // ApplicationID returns the application ID that corresponds with the access log | {
"resource": ""
} | ||
c15820 | train | // ForwardIO sets up websocket forwarding with a backend
//
// It returns after one of the connections closes.
//
// If the backend response code is not 101 Switching Protocols, then
// ForwardIO will return immediately, allowing the caller to close the connections. | {
"resource": ""
} | ||
c15821 | train | // NewLookup creates a handler responsible for looking up a route. | {
"resource": ""
} | ||
c15822 | train | // Trim time slots up to and including time t. | {
"resource": ""
} | ||
c15823 | train | // Session returns a new logger with a nested session. | {
"resource": ""
} | ||
c15824 | train | // Debug logs a message at the debug log level. | {
"resource": ""
} | ||
c15825 | train | // Error logs a message at the error log level. | {
"resource": ""
} | ||
c15826 | train | // WithData returns a logger with newly added data. | {
"resource": ""
} | ||
c15827 | train | // NewReporter creates a new handler that handles reporting backend
// responses to metrics | {
"resource": ""
} | ||
c15828 | train | // ServeHTTP handles reporting the response after the request has been completed | {
"resource": ""
} | ||
c15829 | train | // connLock must be locked | {
"resource": ""
} | ||
c15830 | train | // Classify returns true on errors that are retryable | {
"resource": ""
} | ||
c15831 | train | // ServeHTTP wraps the responseWriter in a ProxyResponseWriter | {
"resource": ""
} | ||
c15832 | train | // Returns true if endpoint was added or updated, false otherwise | {
"resource": ""
} | ||
c15833 | train | // Returns true if the endpoint was removed from the Pool, false otherwise. | {
"resource": ""
} | ||
c15834 | train | // ValidateMessage checks to ensure the registry message is valid | {
"resource": ""
} | ||
c15835 | train | // Prefer TLS Port instead of HTTP Port in Registrty Message | {
"resource": ""
} | ||
c15836 | train | // NewSubscriber returns a new Subscriber | {
"resource": ""
} | ||
c15837 | train | // Run manages the lifecycle of the subscriber process | {
"resource": ""
} | ||
c15838 | train | // Snip removes an empty Pool from a node and trims empty leaf nodes from the Trie | {
"resource": ""
} | ||
c15839 | train | // NewPanicCheck creates a handler responsible for checking for panics and setting the Healthcheck to fail. | {
"resource": ""
} | ||
c15840 | train | // NewHTTPStartStop creates a new handler that handles emitting frontent
// HTTP StartStop events | {
"resource": ""
} | ||
c15841 | train | // ServeHTTP handles emitting a StartStop event after the request has been completed | {
"resource": ""
} | ||
c15842 | train | // GetLocalIP queries the host interface to determine the local IP address of this
// machine. If a local IP address cannot be found, then nil is returned. Local IPv6
// address takes presedence over a local IPv4 address. If the query to the underlying
// OS fails, an error is returned. | {
"resource": ""
} | ||
c15843 | train | // HealthyNodes will return a list of all nodes known at the time of the
// request with a healthy status. | {
"resource": ""
} | ||
c15844 | train | // RemoveNode can be used to explicitly remove a node from the list of known
// live nodes. Updates the node timestamp but DOES NOT implicitly update the
// node's status; you need to do this explicitly. | {
"resource": ""
} | ||
c15845 | train | // GetListenIP returns the IP that this host will listen on. | {
"resource": ""
} | ||
c15846 | train | // GetMulticastEnabled returns whether multicast announcements are enabled. | {
"resource": ""
} | ||
c15847 | train | // Gets an environmental variable "key". If it does not exist, "defaultVal" is
// returned; if it does, it attempts to convert to an integer, returning
// "defaultVal" if it fails. | {
"resource": ""
} | ||
c15848 | train | // Gets an environmental variable "key". If it does not exist, "defaultVal" is
// returned; if it does, it attempts to convert to a string slice, returning
// "defaultVal" if it fails. | {
"resource": ""
} | ||
c15849 | train | // Gets an environmental variable "key". If it does not exist, "defaultVal" is
// returned; if it does, it attempts to convert to a string, returning
// "defaultVal" if it fails. | {
"resource": ""
} | ||
c15850 | train | // Splits a string on a regular expression. | {
"resource": ""
} | ||
c15851 | train | // getListenInterface gets the network interface for the listen IP | {
"resource": ""
} | ||
c15852 | train | // multicastAnnounce is called when the server first starts to broadcast its
// presence to all listening servers within the specified subnet and continues
// to broadcast its presence every multicastAnnounceIntervalSeconds in case
// this value is larger than zero. | {
"resource": ""
} | ||
c15853 | train | // Log writes a log message of a certain level to the logger | {
"resource": ""
} | ||
c15854 | train | // Logf writes a log message with a specific format to the logger | {
"resource": ""
} | ||
c15855 | train | // Address rReturns the address for this node in string format, which is simply
// the node's local IP and listen port. This is used as a unique identifier
// throughout the code base. | {
"resource": ""
} | ||
c15856 | train | // Convenience function. Creates a new message instance. | {
"resource": ""
} | ||
c15857 | train | // If members exist on this message, and that message has the "forward to"
// status, this function returns it; otherwise it returns nil. | {
"resource": ""
} | ||
c15858 | train | // Returns the mean modified by the requested number of sigmas | {
"resource": ""
} | ||
c15859 | train | // Returns both mean and standard deviation | {
"resource": ""
} | ||
c15860 | train | // Returns a pointer to the requested Node | {
"resource": ""
} | ||
c15861 | train | // Bytes returns a copy of this broadcast's bytes. Manipulating the contents
// of this slice will not be reflected in the contents of the broadcast. | {
"resource": ""
} | ||
c15862 | train | // BroadcastBytes allows a user to emit a short broadcast in the form of a byte
// slice, which will be transmitted at most once to all other healthy current
// members. Members that join after the broadcast has already propagated
// through the cluster will not receive the message. The maximum broadcast
// length is 2... | {
"resource": ""
} | ||
c15863 | train | // receiveBroadcast is called by receiveMessageUDP when a broadcast payload
// is found in a message. | {
"resource": ""
} | ||
c15864 | train | // checkBroadcastOrigin checks wether the origin is set correctly | {
"resource": ""
} | ||
c15865 | train | // SetConfiguration sets a global YARA configuration option. | {
"resource": ""
} | ||
c15866 | train | // GetConfiguration gets a global YARA configuration option. | {
"resource": ""
} | ||
c15867 | train | // destroy frees stored C pointers | {
"resource": ""
} | ||
c15868 | train | // RuleMatching implements the ScanCallbackMatch interface for
// MatchRules. | {
"resource": ""
} | ||
c15869 | train | // writeFull does its best to write all of buf to w. See io.ReadFull. | {
"resource": ""
} | ||
c15870 | train | // NewCompiler creates a YARA compiler. | {
"resource": ""
} | ||
c15871 | train | // Destroy destroys the YARA data structure representing a compiler.
// Since a Finalizer for the underlying YR_COMPILER structure is
// automatically set up on creation, it should not be necessary to
// explicitly call this method. | {
"resource": ""
} | ||
c15872 | train | // AddString compiles rules from a string. Rules are added to the
// specified namespace.
//
// If this function returns an error, the Compiler object will become
// unusable. | {
"resource": ""
} | ||
c15873 | train | // GetRules returns the compiled ruleset. | {
"resource": ""
} | ||
c15874 | train | // MustCompile is like Compile but panics if the rules and optional
// variables can't be compiled. Like regexp.MustCompile, it allows for
// simple, safe initialization of global or test data. | {
"resource": ""
} | ||
c15875 | train | // DisableIncludes disables all include statements in the compiler.
// See yr_compiler_set_include_callbacks. | {
"resource": ""
} | ||
c15876 | train | // ScanMem scans an in-memory buffer using the ruleset, returning
// matches via a list of MatchRule objects. | {
"resource": ""
} | ||
c15877 | train | // ScanMemWithCallback scans an in-memory buffer using the ruleset.
// For every event emitted by libyara, the appropriate method on the
// ScanCallback object is called. | {
"resource": ""
} | ||
c15878 | train | // ScanFile scans a file using the ruleset, returning matches via a
// list of MatchRule objects. | {
"resource": ""
} | ||
c15879 | train | // ScanFileWithCallback scans a file using the ruleset. For every
// event emitted by libyara, the appropriate method on the
// ScanCallback object is called. | {
"resource": ""
} | ||
c15880 | train | // ScanProc scans a live process using the ruleset, returning matches
// via a list of MatchRule objects. | {
"resource": ""
} | ||
c15881 | train | // ScanProcWithCallback scans a live process using the ruleset. For
// every event emitted by libyara, the appropriate method on the
// ScanCallback object is called. | {
"resource": ""
} | ||
c15882 | train | // Save writes a compiled ruleset to filename. | {
"resource": ""
} | ||
c15883 | train | // LoadRules retrieves a compiled ruleset from filename. | {
"resource": ""
} | ||
c15884 | train | // Destroy destroys the YARA data structure representing a ruleset.
// Since a Finalizer for the underlying YR_RULES structure is
// automatically set up on creation, it should not be necessary to
// explicitly call this method. | {
"resource": ""
} | ||
c15885 | train | // GetRules returns a slice of rule objects that are part of the
// ruleset | {
"resource": ""
} | ||
c15886 | train | // AddFile compiles rules from a file. Rules are added to the
// specified namespace.
//
// If this function returns an error, the Compiler object will become
// unusable. | {
"resource": ""
} | ||
c15887 | train | // MakePool creates a Pool that can hold n elements. | {
"resource": ""
} | ||
c15888 | train | // Put adds an element to the cbPool, returning a stable pointer
// suitable for passing through CGO. It panics if the pool is full. | {
"resource": ""
} | ||
c15889 | train | // Put accesses an element stored in the cbPool, using a pointer
// previously returned by Put. It panics if the pointer is invalid or
// if it references an empty slot. | {
"resource": ""
} | ||
c15890 | train | // Delete removes an element from the cbPool, using a pointer previously
// returned by Put. It panics if the pointer is invalid or if it
// references an empty slot. | {
"resource": ""
} | ||
c15891 | train | // ScanFileDescriptor scans a file using the ruleset, returning
// matches via a list of MatchRule objects. | {
"resource": ""
} | ||
c15892 | train | // ScanFileDescriptorWithCallback scans a file using the ruleset. For every event
// emitted by libyara, the appropriate method on the ScanCallback
// object is called. | {
"resource": ""
} | ||
c15893 | train | // Write writes a compiled ruleset to an io.Writer. | {
"resource": ""
} | ||
c15894 | train | // ReadRules retrieves a compiled ruleset from an io.Reader | {
"resource": ""
} | ||
c15895 | train | // Identifier returns the rule's name. | {
"resource": ""
} | ||
c15896 | train | // Namespace returns the rule's namespace. | {
"resource": ""
} | ||
c15897 | train | // Tags returns the rule's tags. | {
"resource": ""
} | ||
c15898 | train | // Metas returns a map containing the rule's meta variables. Values
// can be of type string, int, bool, or nil.
//
// If a rule contains multiple meta variables with the same name, only
// the last meta variable is returned as part of the map. | {
"resource": ""
} | ||
c15899 | train | // Strings returns the rule's strings | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.