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