Documentation ¶
Index ¶
- func GenerateInstallationID() string
- type Config
- type Installation
- type InstallationMetadata
- type Multidevice
- func (s *Multidevice) AddInstallations(identity []byte, timestamp int64, installations []*Installation, ...) ([]*Installation, error)
- func (s *Multidevice) DisableInstallation(myIdentityKey *ecdsa.PublicKey, installationID string) error
- func (s *Multidevice) EnableInstallation(identity *ecdsa.PublicKey, installationID string) error
- func (s *Multidevice) GetActiveInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
- func (s *Multidevice) GetOurActiveInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
- func (s *Multidevice) GetOurInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
- func (s *Multidevice) InstallationID() string
- func (s *Multidevice) SetInstallationMetadata(identity *ecdsa.PublicKey, installationID string, ...) error
- func (s *Multidevice) SetInstallationName(identity *ecdsa.PublicKey, installationID string, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInstallationID ¶ added in v0.184.43
func GenerateInstallationID() string
Types ¶
type Installation ¶
type Installation struct { // Identity is the string identity of the owner Identity string `json:"identity"` // The installation-id of the device ID string `json:"id"` // The last known protocol version of the device Version uint32 `json:"version"` // Enabled is whether the installation is enabled Enabled bool `json:"enabled"` // Timestamp is the last time we saw this device Timestamp int64 `json:"timestamp"` // InstallationMetadata InstallationMetadata *InstallationMetadata `json:"metadata"` }
func (*Installation) UniqueKey ¶ added in v0.182.40
func (i *Installation) UniqueKey() string
type InstallationMetadata ¶
type Multidevice ¶
type Multidevice struct {
// contains filtered or unexported fields
}
func (*Multidevice) AddInstallations ¶
func (s *Multidevice) AddInstallations(identity []byte, timestamp int64, installations []*Installation, defaultEnabled bool) ([]*Installation, error)
func (*Multidevice) DisableInstallation ¶
func (s *Multidevice) DisableInstallation(myIdentityKey *ecdsa.PublicKey, installationID string) error
func (*Multidevice) EnableInstallation ¶
func (s *Multidevice) EnableInstallation(identity *ecdsa.PublicKey, installationID string) error
func (*Multidevice) GetActiveInstallations ¶
func (s *Multidevice) GetActiveInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
func (*Multidevice) GetOurActiveInstallations ¶
func (s *Multidevice) GetOurActiveInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
func (*Multidevice) GetOurInstallations ¶
func (s *Multidevice) GetOurInstallations(identity *ecdsa.PublicKey) ([]*Installation, error)
func (*Multidevice) InstallationID ¶
func (s *Multidevice) InstallationID() string
func (*Multidevice) SetInstallationMetadata ¶
func (s *Multidevice) SetInstallationMetadata(identity *ecdsa.PublicKey, installationID string, metadata *InstallationMetadata) error
func (*Multidevice) SetInstallationName ¶ added in v0.138.8
Click to show internal directories.
Click to hide internal directories.