Documentation ¶
Index ¶
- type StoragePostgreSQL
- func (s StoragePostgreSQL) EntryGet(ctx context.Context, fromtime time.Time, precision time.Duration) (entries []*serviceitems.Entry, internalError error)
- func (s StoragePostgreSQL) EntryLevelUpdate(ctx context.Context, update serviceitems.EntryLevelUpdate) error
- func (s StoragePostgreSQL) EntryLevelsList(ctx context.Context) (entries []*serviceitems.EntryLevel, internalError error)
- func (s StoragePostgreSQL) EntryUpdate(ctx context.Context, item serviceitems.EntryUpdate) (internalError error)
- func (s StoragePostgreSQL) HeightList(ctx context.Context) (items []*serviceitems.Height, internalError error)
- func (s StoragePostgreSQL) HeightUpdate(ctx context.Context, add serviceitems.HeightAdd) (internalError error)
- func (s StoragePostgreSQL) ReOccurringTaskList(ctx context.Context) (tasks []*serviceitems.ReoccurringTask, internalError error)
- func (s StoragePostgreSQL) ReOccurringTaskUpdate(ctx context.Context, update serviceitems.ReoccurringTaskUpdate) (retid int, internalError error)
- func (s StoragePostgreSQL) TagGet(ctx context.Context, i int) (item *serviceitems.Tag, internalError error)
- func (s StoragePostgreSQL) TagList(ctx context.Context) (tags []*serviceitems.Tag, internalError error)
- func (s StoragePostgreSQL) TagUpdate(ctx context.Context, tag serviceitems.TagUpdate) (int, error)
- func (s StoragePostgreSQL) TaskGet(ctx context.Context, id int) (item *serviceitems.Task, internalError error)
- func (s StoragePostgreSQL) TaskList(ctx context.Context, option serviceitems.TaskSearchOption) (tasks []*serviceitems.Task, internalError error)
- func (s StoragePostgreSQL) TaskUpdate(ctx context.Context, task serviceitems.TaskUpdate) (retid int, internalError error)
- func (s StoragePostgreSQL) TestMADRSAnswer(ctx context.Context, answer serviceitems.TestMADRSAnswers) (internalError error)
- func (s StoragePostgreSQL) WeightList(ctx context.Context) (items []*serviceitems.Weight, internalError error)
- func (s StoragePostgreSQL) WeightUpdate(ctx context.Context, add serviceitems.WeightAdd) (internalError error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoragePostgreSQL ¶
type StoragePostgreSQL struct {
// contains filtered or unexported fields
}
func New ¶
func New(user, password, database, host string, port uint16) (s *StoragePostgreSQL)
func (StoragePostgreSQL) EntryGet ¶
func (s StoragePostgreSQL) EntryGet(ctx context.Context, fromtime time.Time, precision time.Duration) (entries []*serviceitems.Entry, internalError error)
func (StoragePostgreSQL) EntryLevelUpdate ¶
func (s StoragePostgreSQL) EntryLevelUpdate(ctx context.Context, update serviceitems.EntryLevelUpdate) error
func (StoragePostgreSQL) EntryLevelsList ¶
func (s StoragePostgreSQL) EntryLevelsList(ctx context.Context) (entries []*serviceitems.EntryLevel, internalError error)
func (StoragePostgreSQL) EntryUpdate ¶
func (s StoragePostgreSQL) EntryUpdate(ctx context.Context, item serviceitems.EntryUpdate) (internalError error)
func (StoragePostgreSQL) HeightList ¶
func (s StoragePostgreSQL) HeightList(ctx context.Context) (items []*serviceitems.Height, internalError error)
func (StoragePostgreSQL) HeightUpdate ¶
func (s StoragePostgreSQL) HeightUpdate(ctx context.Context, add serviceitems.HeightAdd) (internalError error)
func (StoragePostgreSQL) ReOccurringTaskList ¶
func (s StoragePostgreSQL) ReOccurringTaskList(ctx context.Context) (tasks []*serviceitems.ReoccurringTask, internalError error)
func (StoragePostgreSQL) ReOccurringTaskUpdate ¶
func (s StoragePostgreSQL) ReOccurringTaskUpdate(ctx context.Context, update serviceitems.ReoccurringTaskUpdate) (retid int, internalError error)
func (StoragePostgreSQL) TagGet ¶
func (s StoragePostgreSQL) TagGet(ctx context.Context, i int) (item *serviceitems.Tag, internalError error)
func (StoragePostgreSQL) TagList ¶
func (s StoragePostgreSQL) TagList(ctx context.Context) (tags []*serviceitems.Tag, internalError error)
func (StoragePostgreSQL) TagUpdate ¶
func (s StoragePostgreSQL) TagUpdate(ctx context.Context, tag serviceitems.TagUpdate) (int, error)
func (StoragePostgreSQL) TaskGet ¶
func (s StoragePostgreSQL) TaskGet(ctx context.Context, id int) (item *serviceitems.Task, internalError error)
func (StoragePostgreSQL) TaskList ¶
func (s StoragePostgreSQL) TaskList(ctx context.Context, option serviceitems.TaskSearchOption) (tasks []*serviceitems.Task, internalError error)
func (StoragePostgreSQL) TaskUpdate ¶
func (s StoragePostgreSQL) TaskUpdate(ctx context.Context, task serviceitems.TaskUpdate) (retid int, internalError error)
func (StoragePostgreSQL) TestMADRSAnswer ¶
func (s StoragePostgreSQL) TestMADRSAnswer(ctx context.Context, answer serviceitems.TestMADRSAnswers) (internalError error)
func (StoragePostgreSQL) WeightList ¶
func (s StoragePostgreSQL) WeightList(ctx context.Context) (items []*serviceitems.Weight, internalError error)
func (StoragePostgreSQL) WeightUpdate ¶
func (s StoragePostgreSQL) WeightUpdate(ctx context.Context, add serviceitems.WeightAdd) (internalError error)
Click to show internal directories.
Click to hide internal directories.