Versions in this module Expand all Collapse all v5 v5.0.1 Nov 10, 2022 v5.0.0 Nov 10, 2022 Changes in this version + const LookupTag + const SearchTag + var ErrChannelLeaseSignature = errors.New("failure to validate lease signature") + var File_udMessages_proto protoreflect.FileDescriptor + func InitStoreFromBackup(kv *versioned.KV, username, email, phone fact.Fact) error + func IsRegistered(kv *versioned.KV) bool + func Lookup(user udE2e, udContact contact.Contact, callback lookupCallback, uid *id.ID, ...) ([]id.Round, receptionID.EphemeralIdentity, error) + func Search(user udE2e, udContact contact.Contact, callback searchCallback, ...) ([]id.Round, receptionID.EphemeralIdentity, error) + func UnmarshallRegistrationDisk(data []byte) (registrationDisk, error) + type Comms interface + AddHost func(hid *id.ID, address string, cert []byte, params connect.HostParams) (host *connect.Host, err error) + GetHost func(hostId *id.ID) (*connect.Host, bool) + SendConfirmFact func(host *connect.Host, message *pb.FactConfirmRequest) (*messages.Ack, error) + SendRegisterFact func(host *connect.Host, message *pb.FactRegisterRequest) (*pb.FactRegisterResponse, error) + SendRegisterUser func(host *connect.Host, message *pb.UDBUserRegistration) (*messages.Ack, error) + SendRemoveFact func(host *connect.Host, message *pb.FactRemovalRequest) (*messages.Ack, error) + SendRemoveUser func(host *connect.Host, message *pb.FactRemovalRequest) (*messages.Ack, error) + type Contact struct + PubKey []byte + TrigFacts []*HashFact + UserID []byte + Username string + func (*Contact) Descriptor() ([]byte, []int) + func (*Contact) ProtoMessage() + func (x *Contact) GetPubKey() []byte + func (x *Contact) GetTrigFacts() []*HashFact + func (x *Contact) GetUserID() []byte + func (x *Contact) GetUsername() string + func (x *Contact) ProtoReflect() protoreflect.Message + func (x *Contact) Reset() + func (x *Contact) String() string + type HashFact struct + Hash []byte + Type int32 + func (*HashFact) Descriptor() ([]byte, []int) + func (*HashFact) ProtoMessage() + func (x *HashFact) GetHash() []byte + func (x *HashFact) GetType() int32 + func (x *HashFact) ProtoReflect() protoreflect.Message + func (x *HashFact) Reset() + func (x *HashFact) String() string + type LookupResponse struct + Error string + PubKey []byte + Username string + func (*LookupResponse) Descriptor() ([]byte, []int) + func (*LookupResponse) ProtoMessage() + func (x *LookupResponse) GetError() string + func (x *LookupResponse) GetPubKey() []byte + func (x *LookupResponse) GetUsername() string + func (x *LookupResponse) ProtoReflect() protoreflect.Message + func (x *LookupResponse) Reset() + func (x *LookupResponse) String() string + type LookupSend struct + UserID []byte + func (*LookupSend) Descriptor() ([]byte, []int) + func (*LookupSend) ProtoMessage() + func (x *LookupSend) GetUserID() []byte + func (x *LookupSend) ProtoReflect() protoreflect.Message + func (x *LookupSend) Reset() + func (x *LookupSend) String() string + type Manager struct + func NewManagerFromBackup(user udE2e, comms Comms, follower udNetworkStatus, cert, contactFile []byte, ...) (*Manager, error) + func NewOrLoad(user udE2e, comms Comms, follower udNetworkStatus, username string, ...) (*Manager, error) + func (m *Manager) ConfirmFact(confirmationID, code string) error + func (m *Manager) GetContact() contact.Contact + func (m *Manager) GetFacts() fact.FactList + func (m *Manager) GetStringifiedFacts() []string + func (m *Manager) PermanentDeleteAccount(f fact.Fact) error + func (m *Manager) RemoveFact(f fact.Fact) error + func (m *Manager) SendRegisterFact(f fact.Fact) (string, error) + func (m *Manager) StartChannelNameService() (channels.NameService, error) + type SearchResponse struct + Contacts []*Contact + Error string + func (*SearchResponse) Descriptor() ([]byte, []int) + func (*SearchResponse) ProtoMessage() + func (x *SearchResponse) GetContacts() []*Contact + func (x *SearchResponse) GetError() string + func (x *SearchResponse) ProtoReflect() protoreflect.Message + func (x *SearchResponse) Reset() + func (x *SearchResponse) String() string + type SearchSend struct + Fact []*HashFact + func (*SearchSend) Descriptor() ([]byte, []int) + func (*SearchSend) ProtoMessage() + func (x *SearchSend) GetFact() []*HashFact + func (x *SearchSend) ProtoReflect() protoreflect.Message + func (x *SearchSend) Reset() + func (x *SearchSend) String() string Other modules containing this package gitlab.com/elixxir/client/v4