store

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Update = "update"
	Sync   = "sync"
	Select = "select"
	Load   = "load"
	Search = "Search"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Mail     proto.MailArgs
	TaskList map[string]model.CrontabTask
	// contains filtered or unexported fields
}

func NewStore

func NewStore(path string) *Store

func (*Store) Export2DB added in v1.4.0

func (s *Store) Export2DB()

func (*Store) Get

func (s *Store) Get(key string) result

func (*Store) GetDataFile

func (s *Store) GetDataFile() (string, bool)

func (*Store) GetMail

func (s *Store) GetMail() (proto.MailArgs, bool)

func (*Store) Load

func (s *Store) Load() result

func (*Store) Query

func (s *Store) Query(key string, state string, fn handle, body string) result

func (*Store) Search

func (s *Store) Search(key, args string) result

func (*Store) Server

func (s *Store) Server()

func (*Store) Sync

func (s *Store) Sync() result

func (*Store) Update

func (s *Store) Update(fn handle) *Store

Jump to

Keyboard shortcuts

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