_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c5400
// Email returns a random email
c5401
// Country returns a random country, countryStyle decides what kind of format the returned country will have
c5402
// State returns a random american state
c5403
// Street returns a random fake street name
c5404
// StreetForCountry returns a random fake street name typical to the supplied country. // If the country is not supported it will return an empty string.
c5405
// Address returns an american style address
c5406
// StringSample returns a random string from a list of strings
c5407
// IpV4Address returns a valid IPv4 address as string
c5408
// IpV6Address returns a valid IPv6 address as net.IP
c5409
// MacAddress returns an mac address string
c5410
// FullDate returns full date
c5411
// Flush pending advertising settings to the device.
c5412
// LnxDeviceID specifies which HCI device to use. // If n is set to -1, all the available HCI devices will be probed. // If chk is set to true, LnxDeviceID checks the LE support in the feature list of the HCI device. // This is to filter devices that does not support LE. In case some LE driver that doesn't correctly //...
c5413
// LnxMaxConnections is an optional parameter. // If set, it overrides the default max connections supported. // This option can only be used with NewDevice on Linux implementation.
c5414
// LnxSetAdvertisingEnable sets the advertising data to the HCI device. // This option can be used with Option on Linux implementation.
c5415
// LnxSetAdvertisingData sets the advertising data to the HCI device. // This option can be used with NewDevice or Option on Linux implementation.
c5416
// LnxSetScanResponseData sets the scan response data to the HXI device. // This option can be used with NewDevice or Option on Linux implementation.
c5417
// LnxSetAdvertisingParameters sets the advertising parameters to the HCI device. // This option can be used with NewDevice or Option on Linux implementation.
c5418
// LnxSendHCIRawCommand sends a raw command to the HCI device // This option can be used with NewDevice or Option on Linux implementation.
c5419
// MacDeviceRole specify the XPC connection type to connect blued. // THis option can only be used with NewDevice on OS X implementation.
c5420
// IoW used for an ioctl that writes data to the device driver.
c5421
// IoRW a combination of IoR and IoW. That is, data is both written to the driver and then read back from the driver by the client.
c5422
// NewCharacteristic creates and returns a Characteristic.
c5423
// NewDescriptor creates and returns a Descriptor.
c5424
// xpcToGo converts an xpc object to a go object // // note that not all the types are supported, but only the subset required for Blued
c5425
// This is only used in Linux port.
c5426
// Bytes returns an 31-byte array, which contains up to 31 bytes of the packet.
c5427
// Len returns the length of the packets with a maximum of 31.
c5428
// AppendFlags appends a flag field to the packet.
c5429
// AppendFlags appends a name field to the packet. // If the name fits in the space, it will be append as a complete name field, otherwise a short name field.
c5430
// AppendManufacturerData appends a manufacturer data field to the packet.
c5431
// AppendUUIDFit appends a BLE advertised service UUID // packet field if it fits in the packet, and reports whether the UUID fit.
c5432
// Close disconnects the connection by sending HCI disconnect command to the device.
c5433
// Signal Packets // 0x00 Reserved Any // 0x01 Command reject 0x0001 and 0x0005 // 0x02 Connection request 0x0001 // 0x03 Connection response 0x0001 // 0x04 Configure request 0x0001 // 0x05 Configure response 0x0001 // 0x06 Disconnection request 0x0001 and 0x0005 // 0x07 Disconnecti...
c5434
// ParseUUID parses a standard-format UUID string, such // as "1800" or "34DA3AD1-7110-41A1-B1EF-4430F509CDE7".
c5435
// MustParseUUID parses a standard-format UUID string, // like ParseUUID, but panics in case of error.
c5436
// Equal returns a boolean reporting whether v represent the same UUID as u.
c5437
// reverse returns a reversed copy of u.
c5438
// Handle registers the specified handlers.
c5439
// CentralConnected returns a Handler, which sets the specified function to be called when a device connects to the server.
c5440
// CentralDisconnected returns a Handler, which sets the specified function to be called when a device disconnects from the server.
c5441
// PeripheralDiscovered returns a Handler, which sets the specified function to be called when a remote peripheral device is found during scan procedure.
c5442
// PeripheralConnected returns a Handler, which sets the specified function to be called when a remote peripheral device connects.
c5443
// PeripheralDisconnected returns a Handler, which sets the specified function to be called when a remote peripheral device disconnects.
c5444
// Option sets the options specified. // Some options can only be set before the device is initialized; they are best used with NewDevice instead of Option.
c5445
// At returns attr a.
c5446
// Chunk starts writing a new chunk. This chunk // is not committed until Commit is called. // Chunk panics if another chunk has already been // started and not committed.
c5447
// Commit writes the current chunk and reports whether the // write succeeded. The write succeeds iff there is enough room. // Commit panics if no chunk has been started.
c5448
// CommitFit writes as much of the current chunk as possible, // truncating as needed. // CommitFit panics if no chunk has been started.
c5449
// WriteByteFit writes b. // It reports whether the write succeeded, // using the criteria of WriteFit.
c5450
// Writeable returns the number of bytes from b // that would be written if pad bytes were written, // then as much of b as fits were written. When // writing to a chunk, any amount of bytes may be // written.
c5451
// ChunkSeek discards the first offset bytes from the // current chunk. It reports whether there were at least // offset bytes available to discard. // It panics if a chunked write is not in progress.
c5452
// Validate a HOTP passcode given a counter and secret. // This is a shortcut for ValidateCustom, with parameters that // are compataible with Google-Authenticator.
c5453
// GenerateCode creates a HOTP passcode given a counter and secret. // This is a shortcut for GenerateCodeCustom, with parameters that // are compataible with Google-Authenticator.
c5454
// GenerateCodeCustom uses a counter and secret value and options struct to // create a passcode.
c5455
// Generate creates a new HOTP Key.
c5456
// Validate a TOTP using the current time. // A shortcut for ValidateCustom, Validate uses a configuration // that is compatible with Google-Authenticator and most clients.
c5457
// GenerateCode creates a TOTP token using the current time. // A shortcut for GenerateCodeCustom, GenerateCode uses a configuration // that is compatible with Google-Authenticator and most clients.
c5458
// Issuer returns the name of the issuing organization.
c5459
// AccountName returns the name of the user's account.
c5460
// Secret returns the opaque secret for this Key.
c5461
// Format converts an integer into the zero-filled size for this Digits.
c5462
// Run `go build` and print the output if something's gone wrong.
c5463
// Accept build jobs and start building when there are no jobs rushing in. // The inrush protection is WorkDelay milliseconds long, in this period // every incoming job will reset the timer.
c5464
// Start the supplied command and return stdout and stderr pipes for logging.
c5465
// Run the command in the given string and restart it after // a message was received on the buildDone channel.
c5466
// Sort functions by the struct to which they're attached first, then the name of the method itself. If the function isn't attached to a struct, put it at the bottom
c5467
// Create a new Writer wrapping the provided io.Writer with the given Codec and number of records per block. // The Writer will lazily write the container file header when WriteRecord is called the first time. // You must call Flush on the Writer before closing the underlying io.Writer, to ensure the final block is ...
c5468
// Write an AvroRecord to the container file. All gogen-avro generated structs // fulfill the AvroRecord interface. Note that all records in a given container file // must be of the same Avro type.
c5469
// Write the current block to the file if it has been filled. It is // best-practise to always call this before the underlying io.Writer is closed.
c5470
// NewNamespaceNamer returns a namespace-aware namer.
c5471
// ToPublicName implements the go-idiomatic public name as in DefaultNamer's // struct, but with additional treatment applied in order to remove possible // invalid tokens from it. Final string is then converted to camel-case.
c5472
// At the beginning of a block, read the length into the Long register // If the block length is 0, jump past the block body because we're done // If the block length is negative, read the byte count, throw it away, multiply the length by -1 // Once we've figured out the number of iterations, push the loop length onto ...
c5473
// At the end of a block, pop the loop count and decrement it. If it's zero, go back to the very // top to read a new block. otherwise jump to start + 7, which pushes the value back on the loop stack
c5474
// RegisterDefinition adds a new type definition to the namespace. Returns an error if the type is already defined.
c5475
// Given a map representing a record definition, validate the definition and build the RecordDefinition struct.
c5476
// decodeEnumDefinition accepts a namespace and a map representing an enum definition, // it validates the definition and build the EnumDefinition struct.
c5477
// decodeFixedDefinition accepts a namespace and a map representing a fixed definition, // it validates the definition and build the FixedDefinition struct.
c5478
// parseAliases parses out all the aliases from a definition map - returns an empty slice if no aliases exist. // Returns an error if the aliases key exists but the value isn't a list of strings.
c5479
// parseCmdLine takes care of building the flagset and checking if the // number of arguments matches the required ones
c5480
// Given two parsed Avro schemas, compile them into a program which can read the data // written by `writer` and store it in the structs generated for `reader`.
c5481
// Insert all the records from m2 into m1, unless the key already exists in m1
c5482
// UpdateMeta updates meta table
c5483
// MakeNvdMetaURLs returns a URL of NVD Feed
c5484
// NewRDB return RDB driver
c5485
// CloseDB close Database
c5486
// getMatchingCpes returns matching CPEs by pseudo-CPE
c5487
// GetCveIDsByCpeURI Select Cve Ids by by pseudo-CPE
c5488
// GetFetchedFeedMeta selects fetchmeta of the year
c5489
// UpsertFeedHash selects sha1 in metafile of the year
c5490
//FetchFeedFiles fetches vulnerability feed file concurrently
c5491
// GenWorkers generate workders
c5492
// GetDefaultLogDir returns default log directory
c5493
// ParseCpeURI parses cpe22uri and set to models.CpeBase
c5494
// StringToFloat cast string to float64
c5495
// NewDB return DB accessor.
c5496
// Validate validates configuration
c5497
// Fetch fetches vulnerability information from JVN and convert it to model
c5498
// FetchConvert fetches vulnerability information from JVN and convert it to model
c5499
// FetchConvert Fetch CVE vulnerability informatino from JVN