_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c9200 | train | // NewSecuredDevice returns a device for a specific name either loaded from the database or newly created.
// Additionally other device can only pair with by providing the correct pin. | {
"resource": ""
} | ||
c9201 | train | // AddAccessory adds an accessory to the container.
// This method ensures that the accessory ids are valid and unique withing the container. | {
"resource": ""
} | ||
c9202 | train | // RemoveAccessory removes an accessory from the container. | {
"resource": ""
} | ||
c9203 | train | // Equal returns true when receiver has the same accessories as the argument. | {
"resource": ""
} | ||
c9204 | train | // AccessoryType returns the accessory type identifier for the accessories inside the container. | {
"resource": ""
} | ||
c9205 | train | // NewSetupServerController returns a new pair setup controller. | {
"resource": ""
} | ||
c9206 | train | // NewPairVerify returns a new endpoint for pair verify endpoint | {
"resource": ""
} | ||
c9207 | train | // HandleGetAccessories returns the container as json bytes. | {
"resource": ""
} | ||
c9208 | train | // New returns an accessory which implements model.Accessory. | {
"resource": ""
} | ||
c9209 | train | // Adds a service to the accessory and updates the ids of the service and the corresponding characteristics | {
"resource": ""
} | ||
c9210 | train | // UpdateIDs updates the service and characteirstic ids. | {
"resource": ""
} | ||
c9211 | train | // Equal returns true when receiver has the same services and id as the argument. | {
"resource": ""
} | ||
c9212 | train | // isPaired returns true when the transport is already paired | {
"resource": ""
} | ||
c9213 | train | // Handles event which are sent when pairing with a device is added or removed | {
"resource": ""
} | ||
c9214 | train | // NewLightbulb returns an light bulb accessory which one light bulb service. | {
"resource": ""
} | ||
c9215 | train | // OnTermination calls a function when the app receives an interrupt of kill signal. | {
"resource": ""
} | ||
c9216 | train | // MAC48Address returns a MAC-48-like address from the argument string | {
"resource": ""
} | ||
c9217 | train | // NewCharacteristicNotification returns an notification response for a characteristic from an accessory. | {
"resource": ""
} | ||
c9218 | train | // NewNotification returns a notification response with a specific body content. | {
"resource": ""
} | ||
c9219 | train | // Body returns the json body for an notification response as bytes. | {
"resource": ""
} | ||
c9220 | train | // Sha512 returns a 256-bit key | {
"resource": ""
} | ||
c9221 | train | // NewAccessories returns a new handler for accessories endpoint | {
"resource": ""
} | ||
c9222 | train | // NewTLV8ContainerFromReader returns a tlv8 container from a bytes buffer. | {
"resource": ""
} | ||
c9223 | train | // NewSession returns a session for a connection. | {
"resource": ""
} | ||
c9224 | train | // NewOutlet returns an outlet accessory containing one outlet service. | {
"resource": ""
} | ||
c9225 | train | // NewPairing returns a new handler for pairing enpdoint | {
"resource": ""
} | ||
c9226 | train | // NewPairingController returns a pairing controller. | {
"resource": ""
} | ||
c9227 | train | // Handle processes a container to pair with a new client without going through the pairing process. | {
"resource": ""
} | ||
c9228 | train | // NewTempDatabase returns a temp database | {
"resource": ""
} | ||
c9229 | train | // NewDatabase returns a database which stores data into the folder specified by the argument string. | {
"resource": ""
} | ||
c9230 | train | // NewDatabaseWithStorage returns a database which uses the argument storage to store data. | {
"resource": ""
} | ||
c9231 | train | // EntityWithName returns a entity for a specific name
// The method tries to load the ltpk from disk and returns initialized client object.
// The method returns nil when no file for this client could be found. | {
"resource": ""
} | ||
c9232 | train | // NewResource returns a new handler for resource requests | {
"resource": ""
} | ||
c9233 | train | // NewRandomEntityWithName returns an entity with a random private and public keys | {
"resource": ""
} | ||
c9234 | train | // NewEntity returns a entity with a name, public and private key. | {
"resource": ""
} | ||
c9235 | train | // generateKeyPairs generates random public and private key pairs | {
"resource": ""
} | ||
c9236 | train | // NewVerifySession creates a new session with random public and private key | {
"resource": ""
} | ||
c9237 | train | // GenerateSharedKeyWithOtherPublicKey generates a Curve25519 shared key based on a public key.
// The other public key is also stored for further use in `otherPublicKey` property. | {
"resource": ""
} | ||
c9238 | train | // SetupEncryptionKey generates an encryption key based on the shared key, salt and info. | {
"resource": ""
} | ||
c9239 | train | // NewTelevision returns a television accessory. | {
"resource": ""
} | ||
c9240 | train | // NewVerifyServerController returns a new verify server controller. | {
"resource": ""
} | ||
c9241 | train | // Handle processes a container to verify if a client is paired correctly. | {
"resource": ""
} | ||
c9242 | train | // NewPairSetup returns a new handler for pairing endpoint | {
"resource": ""
} | ||
c9243 | train | // HandleUpdateCharacteristics handles an update characteristic request. The bytes must represent
// a data.Characteristics json. | {
"resource": ""
} | ||
c9244 | train | // GetCharacteristic returns the characteristic identified by the accessory id aid and characteristic id iid | {
"resource": ""
} | ||
c9245 | train | // NewThermostat returns a Thermostat which implements model.Thermostat. | {
"resource": ""
} | ||
c9246 | train | // NewServer returns a server | {
"resource": ""
} | ||
c9247 | train | // listenAndServe returns a http.Server to listen on a specific address | {
"resource": ""
} | ||
c9248 | train | // setupEndpoints creates controller objects to handle HAP endpoints | {
"resource": ""
} | ||
c9249 | train | // ValidateED25519Signature return true when the ED25519 signature is a valid signature of the data based on the key, otherwise false. | {
"resource": ""
} | ||
c9250 | train | // ED25519Signature returns the ED25519 signature of data using the key. | {
"resource": ""
} | ||
c9251 | train | // ED25519GenerateKey return a public and private ED25519 key pair from a string. | {
"resource": ""
} | ||
c9252 | train | // CharacteristicLocalFilePath returns the filepath to a characteristic | {
"resource": ""
} | ||
c9253 | train | // CharacteristicRelativeFilePath returns the relative filepath to a characteristic | {
"resource": ""
} | ||
c9254 | train | // ServiceLocalFilePath returns the filepath to a service | {
"resource": ""
} | ||
c9255 | train | // ServiceRelativeFilePath returns the relative filepath to a service | {
"resource": ""
} | ||
c9256 | train | // NewTCPListener returns a new hap tcp listener. | {
"resource": ""
} | ||
c9257 | train | // Accept creates and returns a Connection. | {
"resource": ""
} | ||
c9258 | train | // NewCamera returns an IP camera accessory. | {
"resource": ""
} | ||
c9259 | train | // RandomHexString returns a random hex string. | {
"resource": ""
} | ||
c9260 | train | // NewConnection returns a hap connection. | {
"resource": ""
} | ||
c9261 | train | // EncryptedWrite encrypts and writes bytes to the connection.
// The method returns the number of written bytes and an error when writing failed. | {
"resource": ""
} | ||
c9262 | train | // DecryptedRead reads and decrypts bytes from the connection.
// The method returns the number of read bytes and an error when reading failed. | {
"resource": ""
} | ||
c9263 | train | // Write writes bytes to the connection.
// The written bytes are encrypted when possible. | {
"resource": ""
} | ||
c9264 | train | // Read reads bytes from the connection. The read bytes are decrypted when possible. | {
"resource": ""
} | ||
c9265 | train | // Close closes the connection and deletes the related session from the context. | {
"resource": ""
} | ||
c9266 | train | // getEncrypter returns the session's Encrypter, otherwise nil | {
"resource": ""
} | ||
c9267 | train | // getDecrypter returns the session's Decrypter, otherwise nil | {
"resource": ""
} | ||
c9268 | train | // NewDevice returns a client for a specific name either loaded from the database
// or newly created. | {
"resource": ""
} | ||
c9269 | train | // CharacteristicGoCode returns the o code for a characteristic file | {
"resource": ""
} | ||
c9270 | train | // isReadable returns true the characteristic contains the readable property | {
"resource": ""
} | ||
c9271 | train | // minifyUUID returns a minified version of s by removing unneeded characters.
// For example the UUID "0000008C-0000-1000-8000-0026BB765291" the Window Covering
// service will be minified to "8C". | {
"resource": ""
} | ||
c9272 | train | // NewSwitch returns a switch which implements model.Switch. | {
"resource": ""
} | ||
c9273 | train | // NewSetupClientSession returns a new setup client session | {
"resource": ""
} | ||
c9274 | train | // GenerateKeys generates public and private keys based on server's salt and public key. | {
"resource": ""
} | ||
c9275 | train | // IsServerProofValid returns true when the server proof `M2` is valid. | {
"resource": ""
} | ||
c9276 | train | // SetupEncryptionKey calculates encryption key `K` based on salt and info. | {
"resource": ""
} | ||
c9277 | train | // NewChunkedWriter returns a writer which writes bytes in chunkes of specified size. | {
"resource": ""
} | ||
c9278 | train | // NewCharacteristics returns a new handler for characteristics endpoint | {
"resource": ""
} | ||
c9279 | train | // txtRecords returns the config formatted as mDNS txt records | {
"resource": ""
} | ||
c9280 | train | // loads load the id, version and config hash | {
"resource": ""
} | ||
c9281 | train | // save stores the id, version and config | {
"resource": ""
} | ||
c9282 | train | // merge updates the StoragePath, Pin, Port and IP fields of the receiver from other. | {
"resource": ""
} | ||
c9283 | train | // updateConfigHash updates configHash of the receiver and increments version
// if new hash is different than old one. | {
"resource": ""
} | ||
c9284 | train | // NewTempFileStorage returns a new storage inside temporary folder. | {
"resource": ""
} | ||
c9285 | train | // NewFileStorage create a file storage for the specified directory.
// The folder is created if necessary. Every key-value pair is stored in a seperate file. | {
"resource": ""
} | ||
c9286 | train | // Set sets the value for a specific key. | {
"resource": ""
} | ||
c9287 | train | // Get returns the value for a specific key. | {
"resource": ""
} | ||
c9288 | train | // Delete removes the file for the corresponding key. | {
"resource": ""
} | ||
c9289 | train | // NewSetupServerSession return a new setup server session. | {
"resource": ""
} | ||
c9290 | train | // SetupPrivateKeyFromClientPublicKey calculates and internally sets secret key `S` based on client public key `A` | {
"resource": ""
} | ||
c9291 | train | // SetupEncryptionKey calculates and internally sets encryption key `K` based on salt and info
//
// Only 32 bytes are used from HKDF-SHA512 | {
"resource": ""
} | ||
c9292 | train | // Run applies the command to the system under test | {
"resource": ""
} | ||
c9293 | train | // NextState calculates the next expected state if the command is applied | {
"resource": ""
} | ||
c9294 | train | // PreCondition checks if the state is valid before the command is applied | {
"resource": ""
} | ||
c9295 | train | // PostCondition checks if the state is valid after the command is applied | {
"resource": ""
} | ||
c9296 | train | // TimeRange generates an arbitrary time.Time with a range
// from defines the start of the time range
// duration defines the overall duration of the time range | {
"resource": ""
} | ||
c9297 | train | // Complex128Shrinker is a shrinker for complex128 numbers | {
"resource": ""
} | ||
c9298 | train | // Complex64Shrinker is a shrinker for complex64 numbers | {
"resource": ""
} | ||
c9299 | train | // WithSize modifies the size parameter. The size parameter defines an upper bound for the size of
// generated slices or strings. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.