Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileIndex ¶
type ProfileIndex struct { record.Base sync.Mutex ID string UserProfiles []string StampProfiles []string }
ProfileIndex links an Identifier to Profiles
func Get ¶
func Get(fpType, id string) (*ProfileIndex, error)
Get gets a ProfileIndex from the database.
func (*ProfileIndex) AddStampProfile ¶
func (pi *ProfileIndex) AddStampProfile(identifier string) (changed bool)
AddStampProfile adds a Stamp Profile to the index.
func (*ProfileIndex) AddUserProfile ¶
func (pi *ProfileIndex) AddUserProfile(identifier string) (changed bool)
AddUserProfile adds a User Profile to the index.
func (*ProfileIndex) RemoveStampProfile ¶
func (pi *ProfileIndex) RemoveStampProfile(id string)
RemoveStampProfile removes a profile from the index.
func (*ProfileIndex) RemoveUserProfile ¶
func (pi *ProfileIndex) RemoveUserProfile(id string)
RemoveUserProfile removes a profile from the index.
func (*ProfileIndex) Save ¶
func (pi *ProfileIndex) Save() error
Save saves the Identifiers to the database
Click to show internal directories.
Click to hide internal directories.