Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { EntryUpdate(context.Context, serviceitems.EntryUpdate) error EntryGet(context.Context, time.Time, time.Duration) ([]*serviceitems.Entry, error) EntryLevelsList(context.Context) ([]*serviceitems.EntryLevel, error) EntryLevelUpdate(context.Context, serviceitems.EntryLevelUpdate) error TagList(ctx context.Context) ([]*serviceitems.Tag, error) TagUpdate(ctx context.Context, tag serviceitems.TagUpdate) (int, error) TagGet(ctx context.Context, i int) (*serviceitems.Tag, error) TaskUpdate(context.Context, serviceitems.TaskUpdate) (int, error) TaskList(context.Context, serviceitems.TaskSearchOption) ([]*serviceitems.Task, error) TaskGet(context.Context, int) (*serviceitems.Task, error) ReOccurringTaskUpdate(context.Context, serviceitems.ReoccurringTaskUpdate) (int, error) ReOccurringTaskList(ctx context.Context) ([]*serviceitems.ReoccurringTask, error) WeightUpdate(context.Context, serviceitems.WeightAdd) error WeightList(context.Context) ([]*serviceitems.Weight, error) HeightUpdate(context.Context, serviceitems.HeightAdd) error HeightList(context.Context) ([]*serviceitems.Height, error) // TestMADRSAnswer answers for test: MADRS TestMADRSAnswer(context.Context, serviceitems.TestMADRSAnswers) error }
Storage interface tells what backend storage (for example: SQL database, filesystem, memory, etc.) must implement
Click to show internal directories.
Click to hide internal directories.