_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c173100 | // Using the classic API, posts a count to a stat. | |
c173101 | // Using the classic API, posts a count to a stat at a specific time. | |
c173102 | // Using the classic API, posts a count of 1 to a stat. | |
c173103 | // Using the classic API, posts a value to a stat. | |
c173104 | // Using the classic API, posts a value to a stat at a specific time. | |
c173105 | // Using the EZ API, posts a count of 1 to a stat. | |
c173106 | // Using the EZ API, posts a count to a stat. | |
c173107 | // Using the EZ API, posts a count to a stat at a specific time. | |
c173108 | // Using the EZ API, posts a value to a stat. | |
c173109 | // Using the EZ API, posts a value to a stat at a specific time. | |
c173110 | // NewBatchReporter creates a batching stat reporter. The interval parameter
// specifies how often stats should be posted to the StatHat server. | |
c173111 | // cleanHost is used to conver from the rawHost format to a more usable format | |
c173112 | // GetHost will get a specified host by either hostname or ip. The first
// return value is the host, if it was found. The second return value is the
// wether the host was found or not | |
c173113 | // Rescan the target. Normally used for finding differences between scans
// at two points in time. | |
c173114 | // Diff gets the difference between the the target host and the argument host.
//The first returned value is the added ports and the second returned value is
// the removed ports. | |
c173115 | // ToString converts the host into a nicely formatted string | |
c173116 | // Init initializes a scan object. This is the easiest way to create a Scan
// object. If you are trying to create a Scan object by hand, make sure to
// instantiate the Hosts map | |
c173117 | // AddHosts adds a list of hosts to the list of hosts to be scanned | |
c173118 | // SetHosts sets the hosts that will be scanned | |
c173119 | // AddPorts appends a list of ports to the list of ports to be scanned | |
c173120 | // SetPorts sets the ports that wil be used | |
c173121 | // SetTCPPorts sets which TCP-only ports are used to scan | |
c173122 | // SetUDPPort sets which TCP-only ports are used to scan | |
c173123 | // AddFlags adds a list of flags to be used by nmap. Seperate flags by new
// arguments. The order of the flag is kept, so when using flags that require
// file names, seperate it by using multiple arguments.
//
// Use the DisallowedFlags variable to guide you on which flags are not allowed
// to be used. | |
c173124 | // IntenseAllTCPPorts does an intense scan, but adds all TCP ports | |
c173125 | // ToString returns the list of hosts into a pretty-printed format | |
c173126 | // CreateNmapArgs takes a Scan object and returns a list of strings that map to
// arguments for an nmap scan. | |
c173127 | // uint16ListToStringList is used to reduce lines for joining strings in
// the CreateNmapArgs function | |
c173128 | // ToString returns port information in a pretty-printed format | |
c173129 | // Counter returns the HOTP's 8-byte counter as an unsigned 64-bit
// integer. | |
c173130 | // Increment will increment an HOTP source's counter. This is useful
// for providers like the Google Authenticator app, which immediately
// increments the counter and uses the 0 counter value as an integrity
// check. | |
c173131 | // NewHOTP intialises a new HOTP instance with the key and counter
// values. No check is done on the digits, but typical values are 6
// and 8. | |
c173132 | // URL returns a suitable URL, such as for the Google Authenticator
// app. The label is used by these apps to identify the service to
// which this OTP belongs. The digits value is ignored by the Google
// authenticator app, and is therefore elided in the resulting URL. | |
c173133 | // truncate contains the DT function from the RFC; this is used to
// deterministically select a sequence of 4 bytes from the HMAC
// counter hash. | |
c173134 | // FromURL parses a new HOTP from a URL string. It returns the OTP,
// the label associated with the OTP, and any errors that occurred. | |
c173135 | // GenerateHOTP will generate a randomised HOTP source; if the
// randCounter parameter is true, the counter will be randomised. | |
c173136 | // YubiKey reads an OATH-HOTP string as returned by a YubiKey, and
// returns three values. The first value contains the actual OTP, the
// second value contains the YubiKey's token identifier, and the final
// value indicates whether the input string was a valid YubiKey
// OTP. This does not check whether the code is ... | |
c173137 | // IntegrityCheck returns two values, the base OTP and the current
// counter. This is used, for example, with the Google Authenticator
// app's "Check key value" function and can be used to verify that
// the application and the provider are in sync. | |
c173138 | // Check takes an input code and verifies it against the OTP. If
// successful, the counter is incremented. | |
c173139 | // Marshal serialises an HOTP key value as a DER-encoded byte slice. | |
c173140 | // Unmarshal parses a DER-encoded serialised HOTP key value. | |
c173141 | // NewWriterPool creates a pool that ensures the writers it wraps will
// respect an overall maxRate, with maxBurst resolution. The semantics
// of the wrapped writers are the same as those of using a plain
// ThrottledWriter. | |
c173142 | // Get a throttled writer that wraps w. | |
c173143 | // Len is the number of currently given out throttled writers. | |
c173144 | // NewReaderPool creates a pool that ensures the writers it wraps will
// respect an overall maxRate, with maxBurst resolution. The semantics
// of the wrapped writers are the same as those of using a plain
// ThrottledReader. | |
c173145 | // Get a throttled reader that wraps r. | |
c173146 | // SetRate of the pool, updating each given out reader to respect the
// newly set rate. Returns the old rate. | |
c173147 | // Len is the number of currently given out throttled readers. | |
c173148 | // NewMeasuredWriter wraps a writer. | |
c173149 | // BytesPerSec tells the rate per second at which bytes were written since last
// measurement. | |
c173150 | // NewMeasuredReader wraps a reader. | |
c173151 | // BytesPer tells the rate per period at which bytes were read since last
// measurement. | |
c173152 | // BytesPerSec tells the rate per second at which bytes were read since last
// measurement. | |
c173153 | // ThrottledReader ensures that reads to `r` never exceeds a specified rate of
// bytes per second. The `maxBurst` duration changes how often the verification is
// done. The smaller the value, the less bursty, but also the more overhead there
// is to the throttling. | |
c173154 | // ThrottledWriter ensures that writes to `w` never exceeds a specified rate of
// bytes per second. The `maxBurst` duration changes how often the verification is
// done. The smaller the value, the less bursty, but also the more overhead there
// is to the throttling. | |
c173155 | // Create a new DNS server. Domain is an unqualified domain that will be used
// as the TLD. | |
c173156 | // Convenience function to ensure that SRV names are well-formed. | |
c173157 | // rewrites supplied host entries to use the domain this dns server manages | |
c173158 | // Receives a FQDN; looks up and supplies the A record. | |
c173159 | // Sets a host to an IP. Note that this is not the FQDN, but a hostname. | |
c173160 | // Deletes a host. Note that this is not the FQDN, but a hostname. | |
c173161 | // Sets a SRV with a service and protocol. See SRVRecord for more information
// on what that requires. | |
c173162 | // Deletes a SRV record based on the service and protocol. | |
c173163 | // Create a Typed helper from the given JSON bytes | |
c173164 | // Create a Typed helper from the given JSON bytes, panics on error | |
c173165 | // Create a Typed helper from the given JSON stream | |
c173166 | // Create a Typed helper from the JSON within a file | |
c173167 | // Create an array of Typed helpers
// Used for when the root is an array which contains objects | |
c173168 | // Create an array of Typed helpers from a file
// Used for when the root is an array which contains objects | |
c173169 | // Returns a boolean at the key, or false if it
// doesn't exist, or if it isn't a bool | |
c173170 | // Returns a boolean at the key, or the specified
// value if it doesn't exist or isn't a bool | |
c173171 | // Returns a bool or panics | |
c173172 | // Returns a boolean at the key and whether
// or not the key existed and the value was a bolean | |
c173173 | // Returns a int at the key, or the specified
// value if it doesn't exist or isn't a int | |
c173174 | // Returns an int or panics | |
c173175 | // Returns an int at the key and whether
// or not the key existed and the value was an int | |
c173176 | // Returns a float at the key, or the specified
// value if it doesn't exist or isn't a float | |
c173177 | // Returns an float or panics | |
c173178 | // Returns an float at the key and whether
// or not the key existed and the value was an float | |
c173179 | // Returns a string at the key, or the specified
// value if it doesn't exist or isn't a string | |
c173180 | // Returns an string or panics | |
c173181 | // Returns a time at the key, or the specified
// value if it doesn't exist or isn't a time | |
c173182 | // Returns a time.Time or panics | |
c173183 | // Returns an time.time at the key and whether
// or not the key existed and the value was a time.Time | |
c173184 | // Returns an typed object or panics | |
c173185 | // Returns a string at the key, or the specified
// value if it doesn't exist or isn't a strin | |
c173186 | // Returns an interface or panics | |
c173187 | // Returns an string at the key and whether
// or not the key existed and the value was an string | |
c173188 | // Returns an slice of boolean, or an nil slice | |
c173189 | // Returns an slice of boolean, or the specified slice | |
c173190 | // Returns an slice of ints, or the specified slice
// Some conversion is done to handle the fact that JSON ints
// are represented as floats. | |
c173191 | // Returns an slice of ints64, or the specified slice
// Some conversion is done to handle the fact that JSON ints
// are represented as floats. | |
c173192 | // Returns an slice of floats, or a nil slice | |
c173193 | // Returns an slice of strings, or a nil slice | |
c173194 | // Returns an slice of Typed helpers, or a nil slice | |
c173195 | // Returns a slice of Typed helpers and true if exists, otherwise; nil and false. | |
c173196 | // GetSessions returns sessions. | |
c173197 | // ObjectChange subscribes to changes for objects of a given type. | |
c173198 | // AutoOfferingPopUp creates AgentPreOfferingPopUp jobs for active offerings.
// Taken into account a current balance of agent ETH. If ETH is not enough to
// pop up all offerings, then no one of them is popped up. Function calculates
// the pop up time. | |
c173199 | // MarshalJSON marshals itself. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.