Versions in this module Expand all Collapse all v0 v0.10.0 May 7, 2021 Changes in this version + var ErrNoRegistry = fmt.Errorf("no registry is configured") + var ErrNotFound = fmt.Errorf("not found") + var ErrSearchNotSupported = fmt.Errorf("search not supported") + var ErrUsernameTaken = fmt.Errorf("username is taken") + func DeregisterProfile(store Profiles, p *Profile) error + func RegisterProfile(store Profiles, p *Profile) (err error) + func UpdateProfile(store Profiles, p *Profile) (err error) + type Indexer interface + IndexDatasets func([]*dataset.Dataset) error + UnindexDatasets func([]*dataset.Dataset) error + type MemProfiles struct + func NewMemProfiles() *MemProfiles + func (ps *MemProfiles) Create(key string, value *Profile) error + func (ps *MemProfiles) Delete(key string) error + func (ps *MemProfiles) Len() (int, error) + func (ps *MemProfiles) Load(key string) (value *Profile, err error) + func (ps *MemProfiles) Range(iter func(key string, p *Profile) (kontinue bool, err error)) (err error) + func (ps *MemProfiles) SortedRange(iter func(key string, p *Profile) (kontinue bool, err error)) (err error) + func (ps *MemProfiles) Update(key string, value *Profile) error + type MockSearch struct + Datasets []*dataset.Dataset + func (ms MockSearch) Search(p SearchParams) (results []*dataset.Dataset, err error) + type NilSearch bool + func (ns NilSearch) Search(p SearchParams) ([]*dataset.Dataset, error) + type Profile struct + Created time.Time + Description string + Email string + HomeURL string + Name string + Password string + Peername string + Photo string + ProfileID string + PublicKey string + Signature string + Thumb string + Twitter string + Username string + func ProfileFromPrivateKey(p *Profile, privKey crypto.PrivKey) (*Profile, error) + func (p *Profile) Validate() error + func (p *Profile) Verify() error + type Profiles interface + Create func(key string, value *Profile) error + Delete func(key string) error + Len func() (int, error) + Load func(key string) (value *Profile, err error) + Range func(iter func(key string, p *Profile) (kontinue bool, err error)) error + SortedRange func(iter func(key string, p *Profile) (kontinue bool, err error)) error + Update func(key string, value *Profile) error + type Registry struct + Indexer Indexer + Profiles Profiles + Remote *remote.Remote + Search Searchable + type SearchParams struct + Limit int + Offset int + Q string + type Searchable interface + Search func(p SearchParams) ([]*dataset.Dataset, error)