index

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

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 NewIndex

func NewIndex(id string) *ProfileIndex

NewIndex returns a new ProfileIndex.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL