Documentation ¶
Index ¶
- Variables
- type Directory
- type InHeap
- type Meta
- type OutHeap
- type Store
- func (s *Store) AddDirectory(directory string) error
- func (s *Store) AddHeap(heap InHeap) error
- func (s *Store) AddToQueue(record []byte) error
- func (s *Store) AuthorizationFlow() (string, string, error)
- func (s *Store) AuthorizationToken() string
- func (s *Store) Close()
- func (s *Store) DeleteDirectory(directory string) error
- func (s *Store) DeleteHeap(id string) error
- func (s *Store) Directories() ([]Directory, error)
- func (s *Store) HeapById(id string) (OutHeap, error)
- func (s *Store) Heaps() ([]string, error)
- func (s *Store) Meta() (Meta, error)
- func (s *Store) MetaTypingActivity(editor string) error
- func (s *Store) NewSession() error
- func (s *Store) NextInQueue(Callback func([]byte) error) error
- func (s *Store) NotifyCurrentDirectories() error
- func (s *Store) SaveAuthorizationFlow(id, link string) error
- func (s *Store) SentToQueue() error
- func (s *Store) SetAuthorizationToken(apiKey string) error
- func (s *Store) SetUserSignatureName(userSignatureName string) error
- func (s *Store) UserSignatureName() string
Constants ¶
This section is empty.
Variables ¶
var ErrNoActivity = errors.New("no activity exist currently")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { NotifyListenToDirectory chan string // contains filtered or unexported fields }
func (*Store) AddDirectory ¶
func (*Store) AddToQueue ¶
Add a json in byte format to queue
func (*Store) AuthorizationFlow ¶
Get values for the authorization flow
func (*Store) AuthorizationToken ¶
Get the authorization token from store
func (*Store) DeleteDirectory ¶
func (*Store) DeleteHeap ¶
func (*Store) Directories ¶
func (*Store) MetaTypingActivity ¶
This function will react on keypress and update the meta state
func (*Store) NewSession ¶
Add a new session, this happens when the meta and heaps should all be reset into a new session.
func (*Store) NextInQueue ¶
Send in a callback that receives payload, if no error occur in callback delete payload from queue
func (*Store) NotifyCurrentDirectories ¶ added in v0.1.1
Function will notify on channel all directories that exist already
func (*Store) SaveAuthorizationFlow ¶
Save the authorization flow
func (*Store) SentToQueue ¶
Update heap_added_to_queue status, this gets called when heap has been added to queue and it shouldn't happen again until next activity. It also reset first_activity
func (*Store) SetAuthorizationToken ¶
Set authorization token in store
func (*Store) SetUserSignatureName ¶
Set the signature username in store
func (*Store) UserSignatureName ¶
Get the user signature name from store