Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataContainerID ¶
type DataContainerID struct {
// contains filtered or unexported fields
}
DataContainerID uniquely identifies a container where a user can store a copy of their data
func GetDataContainerIDFromProto ¶
func GetDataContainerIDFromProto(proto *commonpb.DataContainerId) (*DataContainerID, error)
GetDataContainerIDFromProto returns a UserID from the protobuf message
func GetDataContainerIDFromString ¶
func GetDataContainerIDFromString(value string) (*DataContainerID, error)
GetDataContainerIDFromString parses a DataContainerID from a string value
func NewDataContainerID ¶
func NewDataContainerID() *DataContainerID
NewDataContainerID returns a new random DataContainerID
func (*DataContainerID) Proto ¶
func (id *DataContainerID) Proto() *commonpb.DataContainerId
Proto returns a UserID into its protobuf message form
func (*DataContainerID) String ¶
func (id *DataContainerID) String() string
String returns the string form of a DataContainerID
func (*DataContainerID) Validate ¶
func (id *DataContainerID) Validate() error
Validate validate a DataContainerID
type IdentifyingFeatures ¶
type IdentifyingFeatures struct {
PhoneNumber *string
}
IdentifyingFeatures are a set of features that can be used to deterministaclly identify a user.
func (*IdentifyingFeatures) Validate ¶
func (f *IdentifyingFeatures) Validate() error
Validate validates an IdentifyingFeatures
type UserID ¶
type UserID struct {
// contains filtered or unexported fields
}
UserID uniquely identifies a user
func GetUserIDFromProto ¶
GetUserIDFromProto returns a UserID from the protobuf message
func GetUserIDFromString ¶
GetUserIDFromString parses a UserID from a string value