cwtch/storage/profile_store.go

18 lines
518 B
Go
Raw Permalink Normal View History

2018-10-05 03:18:34 +00:00
package storage
2018-10-06 03:50:55 +00:00
import (
"cwtch.im/cwtch/model"
"cwtch.im/cwtch/storage/v1"
2018-10-06 03:50:55 +00:00
)
// ProfileStore is an interface to managing the storage of Cwtch Profiles
type ProfileStore interface {
GetProfileCopy(timeline bool) *model.Profile
}
// LoadProfileWriterStore loads a profile store from filestore listening for events and saving them
// directory should be $appDir/profiles/$rand
2021-11-18 23:43:58 +00:00
func LoadProfileWriterStore(directory, password string) (ProfileStore, error) {
return v1.LoadProfileWriterStore(directory, password)
}