Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProfile ¶
NewProfile creates a new profile for use in the profile store.
Types ¶
type ProfileStore ¶
type ProfileStore interface { Load() error Shutdown() GetProfileCopy(timeline bool) *model.Profile GetNewPeerMessage() *event.Event GetStatusMessages() []*event.Event }
ProfileStore is an interface to managing the storage of Cwtch Profiles
func NewProfileWriterStore ¶
func NewProfileWriterStore(eventManager event.Manager, directory, password string, profile *model.Profile) ProfileStore
NewProfileWriterStore returns a profile store backed by a filestore listening for events and saving them directory should be $appDir/profiles/$rand
type StreamStore ¶
StreamStore provides a stream like interface to encrypted storage
func NewStreamStore ¶
func NewStreamStore(directory string, filenameBase string, password string) (store StreamStore)
NewStreamStore returns an initialized StreamStore ready for reading and writing
Click to show internal directories.
Click to hide internal directories.