_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c173700 | validation | //Return non-array values | {
"resource": ""
} | ||
c173701 | validation | //Return array values | {
"resource": ""
} | ||
c173702 | validation | // buildParams takes the image options set by the user and turns them into command flags for wkhtmltoimage
// It returns an array of command flags. | {
"resource": ""
} | ||
c173703 | validation | // unsetenv is not available in mingw | {
"resource": ""
} | ||
c173704 | validation | // AssuanSend sends a raw Assuan command to gpg-agent | {
"resource": ""
} | ||
c173705 | validation | // NewData returns a new memory based data buffer | {
"resource": ""
} | ||
c173706 | validation | // NewDataFile returns a new file based data buffer | {
"resource": ""
} | ||
c173707 | validation | // NewDataBytes returns a new memory based data buffer that contains `b` bytes | {
"resource": ""
} | ||
c173708 | validation | // NewDataReader returns a new callback based data buffer | {
"resource": ""
} | ||
c173709 | validation | // NewDataWriter returns a new callback based data buffer | {
"resource": ""
} | ||
c173710 | validation | // NewDataReadWriter returns a new callback based data buffer | {
"resource": ""
} | ||
c173711 | validation | // NewDataReadWriteSeeker returns a new callback based data buffer | {
"resource": ""
} | ||
c173712 | validation | // Close releases any resources associated with the data buffer | {
"resource": ""
} | ||
c173713 | validation | // Name returns the associated filename if any | {
"resource": ""
} | ||
c173714 | validation | // NewCommand creates a new Livestatus command instance. | {
"resource": ""
} | ||
c173715 | validation | // Arg appends a new argument to the command. | {
"resource": ""
} | ||
c173716 | validation | // String returns a string representation of the Livestatus command. | {
"resource": ""
} | ||
c173717 | validation | // Columns returns the list of the record columns. | {
"resource": ""
} | ||
c173718 | validation | // Get returns an interface value for a specific column. | {
"resource": ""
} | ||
c173719 | validation | // GetBool returns a boolean value for a specific column. | {
"resource": ""
} | ||
c173720 | validation | // GetInt returns an integer value for a specific column. | {
"resource": ""
} | ||
c173721 | validation | // GetSlice returns a slice of interface value for a specific column. | {
"resource": ""
} | ||
c173722 | validation | // GetString returns a string value for a specific column. | {
"resource": ""
} | ||
c173723 | validation | // GetTime returns a time struct value for a specific column. | {
"resource": ""
} | ||
c173724 | validation | // ChangeContactModattr creates a new "CHANGE_CONTACT_MODATTR" Nagios command.
//
// This command changes the modified attributes value for the specified contact.
//
// Modified attributes values are used by Nagios to determine which object properties should be retained across program
// restarts.
//
// Thus, modifying... | {
"resource": ""
} | ||
c173725 | validation | // ChangeContactModhattr creates a new "CHANGE_CONTACT_MODHATTR" Nagios command.
//
// This command changes the modified host attributes value for the specified contact.
//
// Modified attributes values are used by Nagios to determine which object properties should be retained across program
// restarts.
//
// Thus, mo... | {
"resource": ""
} | ||
c173726 | validation | // ChangeContactModsattr creates a new "CHANGE_CONTACT_MODSATTR" Nagios command.
//
// This command changes the modified service attributes value for the specified contact.
//
// Modified attributes values are used by Nagios to determine which object properties should be retained across program
// restarts.
//
// Thus,... | {
"resource": ""
} | ||
c173727 | validation | // ChangeCustomContactVar creates a new "CHANGE_CUSTOM_CONTACT_VAR" Nagios command.
//
// Changes the value of a custom contact variable. | {
"resource": ""
} | ||
c173728 | validation | // ChangeCustomHostVar creates a new "CHANGE_CUSTOM_HOST_VAR" Nagios command.
//
// Changes the value of a custom host variable. | {
"resource": ""
} | ||
c173729 | validation | // ChangeCustomSvcVar creates a new "CHANGE_CUSTOM_SVC_VAR" Nagios command.
//
// Changes the value of a custom service variable. | {
"resource": ""
} | ||
c173730 | validation | // ChangeHostCheckTimeperiod creates a new "CHANGE_HOST_CHECK_TIMEPERIOD" Nagios command.
//
// Changes the valid check period for the specified host. | {
"resource": ""
} | ||
c173731 | validation | // ChangeHostModattr creates a new "CHANGE_HOST_MODATTR" Nagios command.
//
// This command changes the modified attributes value for the specified host.
//
// Modified attributes values are used by Nagios to determine which object properties should be retained across program
// restarts.
//
// Thus, modifying the valu... | {
"resource": ""
} | ||
c173732 | validation | // ChangeSvcModattr creates a new "CHANGE_SVC_MODATTR" Nagios command.
//
// This command changes the modified attributes value for the specified service.
//
// Modified attributes values are used by Nagios to determine which object properties should be retained across program
// restarts.
//
// Thus, modifying the val... | {
"resource": ""
} | ||
c173733 | validation | // DelAllSvcComments creates a new "DEL_ALL_SVC_COMMENTS" Nagios command.
//
// Deletes all comments associated with a particular service. | {
"resource": ""
} | ||
c173734 | validation | // DisablePassiveSvcChecks creates a new "DISABLE_PASSIVE_SVC_CHECKS" Nagios command.
//
// Disables passive checks for the specified service. | {
"resource": ""
} | ||
c173735 | validation | // DisableServiceFlapDetection creates a new "DISABLE_SERVICE_FLAP_DETECTION" Nagios command.
//
// Disables flap detection for the specified service. | {
"resource": ""
} | ||
c173736 | validation | // DisableSvcCheck creates a new "DISABLE_SVC_CHECK" Nagios command.
//
// Disables active checks for a particular service. | {
"resource": ""
} | ||
c173737 | validation | // DisableSvcEventHandler creates a new "DISABLE_SVC_EVENT_HANDLER" Nagios command.
//
// Disables the event handler for the specified service. | {
"resource": ""
} | ||
c173738 | validation | // DisableSvcFlapDetection creates a new "DISABLE_SVC_FLAP_DETECTION" Nagios command.
//
// Disables flap detection for the specified service. | {
"resource": ""
} | ||
c173739 | validation | // DisableSvcNotifications creates a new "DISABLE_SVC_NOTIFICATIONS" Nagios command.
//
// Disables notifications for a particular service. | {
"resource": ""
} | ||
c173740 | validation | // EnablePassiveSvcChecks creates a new "ENABLE_PASSIVE_SVC_CHECKS" Nagios command.
//
// Enables passive checks for the specified service. | {
"resource": ""
} | ||
c173741 | validation | // EnableSvcCheck creates a new "ENABLE_SVC_CHECK" Nagios command.
//
// Enables active checks for a particular service. | {
"resource": ""
} | ||
c173742 | validation | // EnableSvcEventHandler creates a new "ENABLE_SVC_EVENT_HANDLER" Nagios command.
//
// Enables the event handler for the specified service. | {
"resource": ""
} | ||
c173743 | validation | // EnableSvcFlapDetection creates a new "ENABLE_SVC_FLAP_DETECTION" Nagios command.
//
// Enables flap detection for the specified service.
//
// In order for the flap detection algorithms to be run for the service, flap detection must be enabled on a
// program-wide basis as well. | {
"resource": ""
} | ||
c173744 | validation | // EnableSvcNotifications creates a new "ENABLE_SVC_NOTIFICATIONS" Nagios command.
//
// Enables notifications for a particular service.
//
// Notifications will be sent out for the service only if notifications are enabled on a program-wide basis as well. | {
"resource": ""
} | ||
c173745 | validation | // RemoveSvcAcknowledgement creates a new "REMOVE_SVC_ACKNOWLEDGEMENT" Nagios command.
//
// This removes the problem acknowledgement for a particular service.
//
// Once the acknowledgement has been removed, notifications can once again be sent out for the given service. | {
"resource": ""
} | ||
c173746 | validation | // StartObsessingOverSvc creates a new "START_OBSESSING_OVER_SVC" Nagios command.
//
// Enables processing of service checks via the OCSP command for the specified service. | {
"resource": ""
} | ||
c173747 | validation | // StopObsessingOverSvc creates a new "STOP_OBSESSING_OVER_SVC" Nagios command.
//
// Disables processing of service checks via the OCSP command for the specified service. | {
"resource": ""
} | ||
c173748 | validation | // NewQuery creates a new Livestatus query instance. | {
"resource": ""
} | ||
c173749 | validation | // Columns selects which columns to retrieve. | {
"resource": ""
} | ||
c173750 | validation | // Filter appends a new filter to the query. | {
"resource": ""
} | ||
c173751 | validation | // And combines the n last filters into a new filter using a `And` operation. | {
"resource": ""
} | ||
c173752 | validation | // Negate negates the most recent filter. | {
"resource": ""
} | ||
c173753 | validation | // WaitObject specifies an object from the table to wait on.
//
// For `hosts`, `hostgroups`, `servicegroups`, `contacts` and `contactgroups` tables this is simply the name of
// the object. For the `services` table it is the `hostname` and the service `description` separated by a space. | {
"resource": ""
} | ||
c173754 | validation | // WaitCondition appends a new wait condition to the query. | {
"resource": ""
} | ||
c173755 | validation | // WaitConditionNegate negates the most recent wait condition. | {
"resource": ""
} | ||
c173756 | validation | // WaitTrigger appends a new wait trigger to the query, waiting for a specific event broker message to recheck
// condition. | {
"resource": ""
} | ||
c173757 | validation | // WaitTimeout sets the upper limit on the time to wait before executing the query. | {
"resource": ""
} | ||
c173758 | validation | // KeepAlive keeps the connection open to reuse for additional requests. | {
"resource": ""
} | ||
c173759 | validation | // ReadTimeout sets the connection timeout for read operations.
// Be careful when using a read timeout in conjunction with wait conditions.
// A value of 0 disables the timeout. | {
"resource": ""
} | ||
c173760 | validation | // String returns a string representation of the Livestatus query. | {
"resource": ""
} | ||
c173761 | validation | // NewClient creates a new Livestatus client instance. | {
"resource": ""
} | ||
c173762 | validation | // NewClientWithDialer creates a new Livestatus client instance using a provided network dialer. | {
"resource": ""
} | ||
c173763 | validation | // Exec executes a given Livestatus query. | {
"resource": ""
} | ||
c173764 | validation | // xtoi2 converts the next two hex digits of s into a byte.
// If s is longer than 2 bytes then the third byte must be e.
// If the first two bytes of s are not hex digits or the third byte
// does not match e, false is returned. | {
"resource": ""
} | ||
c173765 | validation | // Mask returns the result of masking the address with mask. | {
"resource": ""
} | ||
c173766 | validation | // New returns a new OUI database loaded from the specified file. | {
"resource": ""
} | ||
c173767 | validation | // Lookup finds the OUI the address belongs to | {
"resource": ""
} | ||
c173768 | validation | // VendorLookup obtains the vendor organization name from the MAC address s. | {
"resource": ""
} | ||
c173769 | validation | // Contains reports whether the mac address belongs to the OUI | {
"resource": ""
} | ||
c173770 | validation | // Create a reader that limits the bandwidth of reads made from r according to
// the supplied throttler. Reads are assumed to be made under the supplied
// context. | {
"resource": ""
} | ||
c173771 | validation | // Create a bucket that limits the rate at which it calls the wrapped bucket
// using opThrottle, and limits the bandwidth with which it reads from the
// wrapped bucket using egressThrottle. | {
"resource": ""
} | ||
c173772 | validation | // NewCmdWithRunner creates a new CmdWithRunner for the provided name and runner. Returns an error if the provided name
// is not a legal command name. | {
"resource": ""
} | ||
c173773 | validation | // MustNewCmdWithRunner returns the result of NewCmdWithRunner and panics in cases where the function returns an error. | {
"resource": ""
} | ||
c173774 | validation | // importBreakPaths returns a slice that contains the import paths before which a line breaks should be inserted. | {
"resource": ""
} | ||
c173775 | validation | // SelfProxyCmderSupplier returns a supplier that, given a command, re-invokes the current executable with a proxy
// version of the provided command. | {
"resource": ""
} | ||
c173776 | validation | // SupplierWithPrependedArgs returns a new Supplier that invokes the provided supplier and returns the result of calling
// RunnerWithPrependedArgs on the returned runner with the result of applying the provided "argsFunc" function to the
// provided command. | {
"resource": ""
} | ||
c173777 | validation | // selfCmder returns a Cmder that creates a command that re-invokes the currently running executable. | {
"resource": ""
} | ||
c173778 | validation | // CmderWithPrependedArgs returns a new Cmder that invokes the provided Cmder, but always adds the provided
// "prependedArgs" before any user-supplied arguments. Note that if the runner being wrapped has a notion of
// "prependedArgs" itself, those arguments will precede the "prependedArgs" provided in this method. | {
"resource": ""
} | ||
c173779 | validation | // NewSeeforRouter for creating a new instance of Seefor router | {
"resource": ""
} | ||
c173780 | validation | // Implementing http handler interface.
// This is a override of Router.ServeHTTP for handling middlewares | {
"resource": ""
} | ||
c173781 | validation | // Before is for adding middleware for running before routing | {
"resource": ""
} | ||
c173782 | validation | // After is for adding middleware for running after routing | {
"resource": ""
} | ||
c173783 | validation | // UseTimer set timer for meaturing endpoint performance.
// If timer is nil and no timer exists
// then a new timer will be created
// else existing timer will be returned.
// You can serve statistics internal using Timer as handler | {
"resource": ""
} | ||
c173784 | validation | // NewRouter return a new Router | {
"resource": ""
} | ||
c173785 | validation | // http Handler Interface | {
"resource": ""
} | ||
c173786 | validation | // Group takes a path which typically a prefix for an endpoint
// It will call callback function with a group router which
// you can add handler for different request methods | {
"resource": ""
} | ||
c173787 | validation | // findChild finds a child node that matches the given node
// It returns nil if no node found. This is to see if
// we already have a similar node registered | {
"resource": ""
} | ||
c173788 | validation | // insertChild registers given node in the route node tree
// If there is already a similar node it will not insert new node
// The returned node is always the registered one ie either
// newly registered or the old one | {
"resource": ""
} | ||
c173789 | validation | // Get returns a Counter for a route.
// If there is no entry it will create a new one.
// It will lock during creation | {
"resource": ""
} | ||
c173790 | validation | // For serving statistics | {
"resource": ""
} | ||
c173791 | validation | // Example how to use basic auth together with r2router | {
"resource": ""
} | ||
c173792 | validation | // NewGroupRouter return GroupRouter which is a helper
// to construct a group of endpoints, such example could
// be API-version or different methods for an endpoint
// You should always use router.Group instead of using this directly | {
"resource": ""
} | ||
c173793 | validation | // Your own route middle wrapper | {
"resource": ""
} | ||
c173794 | validation | // Wrapper for http.HandlerFunc | {
"resource": ""
} | ||
c173795 | validation | // RectFromSphere returns the minimum rectangle that contains the circle of
// center c and radius r. | {
"resource": ""
} | ||
c173796 | validation | // CopyRect allocates and returns a new Rectangle that is the copy of r. | {
"resource": ""
} | ||
c173797 | validation | // Size returns r's width, height and depth. | {
"resource": ""
} | ||
c173798 | validation | // Overlaps reports whether r and s have a non-empty intersection. | {
"resource": ""
} | ||
c173799 | validation | // String returns a string representation of r. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.