_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c173700
//Return non-array values
c173701
//Return array values
c173702
// buildParams takes the image options set by the user and turns them into command flags for wkhtmltoimage // It returns an array of command flags.
c173703
// unsetenv is not available in mingw
c173704
// AssuanSend sends a raw Assuan command to gpg-agent
c173705
// NewData returns a new memory based data buffer
c173706
// NewDataFile returns a new file based data buffer
c173707
// NewDataBytes returns a new memory based data buffer that contains `b` bytes
c173708
// NewDataReader returns a new callback based data buffer
c173709
// NewDataWriter returns a new callback based data buffer
c173710
// NewDataReadWriter returns a new callback based data buffer
c173711
// NewDataReadWriteSeeker returns a new callback based data buffer
c173712
// Close releases any resources associated with the data buffer
c173713
// Name returns the associated filename if any
c173714
// NewCommand creates a new Livestatus command instance.
c173715
// Arg appends a new argument to the command.
c173716
// String returns a string representation of the Livestatus command.
c173717
// Columns returns the list of the record columns.
c173718
// Get returns an interface value for a specific column.
c173719
// GetBool returns a boolean value for a specific column.
c173720
// GetInt returns an integer value for a specific column.
c173721
// GetSlice returns a slice of interface value for a specific column.
c173722
// GetString returns a string value for a specific column.
c173723
// GetTime returns a time struct value for a specific column.
c173724
// 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...
c173725
// 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...
c173726
// 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,...
c173727
// ChangeCustomContactVar creates a new "CHANGE_CUSTOM_CONTACT_VAR" Nagios command. // // Changes the value of a custom contact variable.
c173728
// ChangeCustomHostVar creates a new "CHANGE_CUSTOM_HOST_VAR" Nagios command. // // Changes the value of a custom host variable.
c173729
// ChangeCustomSvcVar creates a new "CHANGE_CUSTOM_SVC_VAR" Nagios command. // // Changes the value of a custom service variable.
c173730
// ChangeHostCheckTimeperiod creates a new "CHANGE_HOST_CHECK_TIMEPERIOD" Nagios command. // // Changes the valid check period for the specified host.
c173731
// 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...
c173732
// 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...
c173733
// DelAllSvcComments creates a new "DEL_ALL_SVC_COMMENTS" Nagios command. // // Deletes all comments associated with a particular service.
c173734
// DisablePassiveSvcChecks creates a new "DISABLE_PASSIVE_SVC_CHECKS" Nagios command. // // Disables passive checks for the specified service.
c173735
// DisableServiceFlapDetection creates a new "DISABLE_SERVICE_FLAP_DETECTION" Nagios command. // // Disables flap detection for the specified service.
c173736
// DisableSvcCheck creates a new "DISABLE_SVC_CHECK" Nagios command. // // Disables active checks for a particular service.
c173737
// DisableSvcEventHandler creates a new "DISABLE_SVC_EVENT_HANDLER" Nagios command. // // Disables the event handler for the specified service.
c173738
// DisableSvcFlapDetection creates a new "DISABLE_SVC_FLAP_DETECTION" Nagios command. // // Disables flap detection for the specified service.
c173739
// DisableSvcNotifications creates a new "DISABLE_SVC_NOTIFICATIONS" Nagios command. // // Disables notifications for a particular service.
c173740
// EnablePassiveSvcChecks creates a new "ENABLE_PASSIVE_SVC_CHECKS" Nagios command. // // Enables passive checks for the specified service.
c173741
// EnableSvcCheck creates a new "ENABLE_SVC_CHECK" Nagios command. // // Enables active checks for a particular service.
c173742
// EnableSvcEventHandler creates a new "ENABLE_SVC_EVENT_HANDLER" Nagios command. // // Enables the event handler for the specified service.
c173743
// 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.
c173744
// 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.
c173745
// 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.
c173746
// StartObsessingOverSvc creates a new "START_OBSESSING_OVER_SVC" Nagios command. // // Enables processing of service checks via the OCSP command for the specified service.
c173747
// StopObsessingOverSvc creates a new "STOP_OBSESSING_OVER_SVC" Nagios command. // // Disables processing of service checks via the OCSP command for the specified service.
c173748
// NewQuery creates a new Livestatus query instance.
c173749
// Columns selects which columns to retrieve.
c173750
// Filter appends a new filter to the query.
c173751
// And combines the n last filters into a new filter using a `And` operation.
c173752
// Negate negates the most recent filter.
c173753
// 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.
c173754
// WaitCondition appends a new wait condition to the query.
c173755
// WaitConditionNegate negates the most recent wait condition.
c173756
// WaitTrigger appends a new wait trigger to the query, waiting for a specific event broker message to recheck // condition.
c173757
// WaitTimeout sets the upper limit on the time to wait before executing the query.
c173758
// KeepAlive keeps the connection open to reuse for additional requests.
c173759
// 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.
c173760
// String returns a string representation of the Livestatus query.
c173761
// NewClient creates a new Livestatus client instance.
c173762
// NewClientWithDialer creates a new Livestatus client instance using a provided network dialer.
c173763
// Exec executes a given Livestatus query.
c173764
// 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.
c173765
// Mask returns the result of masking the address with mask.
c173766
// New returns a new OUI database loaded from the specified file.
c173767
// Lookup finds the OUI the address belongs to
c173768
// VendorLookup obtains the vendor organization name from the MAC address s.
c173769
// Contains reports whether the mac address belongs to the OUI
c173770
// 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.
c173771
// 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.
c173772
// NewCmdWithRunner creates a new CmdWithRunner for the provided name and runner. Returns an error if the provided name // is not a legal command name.
c173773
// MustNewCmdWithRunner returns the result of NewCmdWithRunner and panics in cases where the function returns an error.
c173774
// importBreakPaths returns a slice that contains the import paths before which a line breaks should be inserted.
c173775
// SelfProxyCmderSupplier returns a supplier that, given a command, re-invokes the current executable with a proxy // version of the provided command.
c173776
// 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.
c173777
// selfCmder returns a Cmder that creates a command that re-invokes the currently running executable.
c173778
// 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.
c173779
// NewSeeforRouter for creating a new instance of Seefor router
c173780
// Implementing http handler interface. // This is a override of Router.ServeHTTP for handling middlewares
c173781
// Before is for adding middleware for running before routing
c173782
// After is for adding middleware for running after routing
c173783
// 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
c173784
// NewRouter return a new Router
c173785
// http Handler Interface
c173786
// 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
c173787
// 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
c173788
// 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
c173789
// Get returns a Counter for a route. // If there is no entry it will create a new one. // It will lock during creation
c173790
// For serving statistics
c173791
// Example how to use basic auth together with r2router
c173792
// 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
c173793
// Your own route middle wrapper
c173794
// Wrapper for http.HandlerFunc
c173795
// RectFromSphere returns the minimum rectangle that contains the circle of // center c and radius r.
c173796
// CopyRect allocates and returns a new Rectangle that is the copy of r.
c173797
// Size returns r's width, height and depth.
c173798
// Overlaps reports whether r and s have a non-empty intersection.
c173799
// String returns a string representation of r.