Documentation ¶
Index ¶
- type Persister
- func (p *Persister) CloseTodo(ctx context.Context, id int32, namespace string) error
- func (p *Persister) CreateActivity(ctx context.Context, name string, date time.Time, description string, ...) (int32, error)
- func (p *Persister) CreateContact(ctx context.Context, firstName string, lastName string, nickname string, ...) (int32, error)
- func (p *Persister) CreateDebt(ctx context.Context, amount float64, currency, description string, ...) (int32, error)
- func (p *Persister) CreateJournalEntry(ctx context.Context, title, body string, rating int32, namespace string) (int32, error)
- func (p *Persister) CreateTodo(ctx context.Context, name string, deadline time.Time, importance int32, ...) (int32, error)
- func (p *Persister) DeleteActivity(ctx context.Context, id int32, contactID int32, namespace string) error
- func (p *Persister) DeleteContact(ctx context.Context, id int32, namespace string) error
- func (p *Persister) DeleteJournalEntry(ctx context.Context, id int32, namespace string) error
- func (p *Persister) DeleteTodo(ctx context.Context, id int32, namespace string) error
- func (p *Persister) GetActivities(ctx context.Context, contactID int32, namespace string) ([]models.GetActivitiesRow, error)
- func (p *Persister) GetActivityAndContact(ctx context.Context, id int32, contactID int32, namespace string) (models.GetActivityAndContactRow, error)
- func (p *Persister) GetContact(ctx context.Context, id int32, namespace string) (models.Contact, error)
- func (p *Persister) GetContacts(ctx context.Context, namespace string) ([]models.Contact, error)
- func (p *Persister) GetDebtAndContact(ctx context.Context, id int32, contactID int32, namespace string) (models.GetDebtAndContactRow, error)
- func (p *Persister) GetDebts(ctx context.Context, contactID int32, namespace string) ([]models.GetDebtsRow, error)
- func (p *Persister) GetDoneTodos(ctx context.Context, namespace string) ([]models.Todo, error)
- func (p *Persister) GetJournalEntries(ctx context.Context, namespace string) ([]models.JournalEntry, error)
- func (p *Persister) GetJournalEntry(ctx context.Context, id int32, namespace string) (models.JournalEntry, error)
- func (p *Persister) GetPendingTodos(ctx context.Context, namespace string) ([]models.Todo, error)
- func (p *Persister) GetTodo(ctx context.Context, id int32, namespace string) (models.Todo, error)
- func (p *Persister) Init() error
- func (p *Persister) SettleDebt(ctx context.Context, id int32, contactID int32, namespace string) error
- func (p *Persister) UpdateActivity(ctx context.Context, id int32, contactID int32, namespace string, name string, ...) error
- func (p *Persister) UpdateContact(ctx context.Context, id int32, ...) error
- func (p *Persister) UpdateDebt(ctx context.Context, id int32, contactID int32, namespace string, ...) error
- func (p *Persister) UpdateJournalEntry(ctx context.Context, id int32, title, body string, rating int32, ...) error
- func (p *Persister) UpdateTodo(ctx context.Context, id int32, name string, deadline time.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persister ¶
type Persister struct {
// contains filtered or unexported fields
}
func NewPersister ¶
func (*Persister) CreateActivity ¶
func (*Persister) CreateContact ¶
func (*Persister) CreateDebt ¶
func (*Persister) CreateJournalEntry ¶
func (*Persister) CreateTodo ¶
func (*Persister) DeleteActivity ¶
func (*Persister) DeleteContact ¶
func (*Persister) DeleteJournalEntry ¶
func (*Persister) DeleteTodo ¶
func (*Persister) GetActivities ¶
func (*Persister) GetActivityAndContact ¶
func (*Persister) GetContact ¶
func (*Persister) GetContacts ¶
func (*Persister) GetDebtAndContact ¶
func (*Persister) GetDoneTodos ¶
func (*Persister) GetJournalEntries ¶
func (*Persister) GetJournalEntry ¶
func (*Persister) GetPendingTodos ¶
func (*Persister) SettleDebt ¶
func (*Persister) UpdateActivity ¶
func (*Persister) UpdateContact ¶
func (*Persister) UpdateDebt ¶
func (*Persister) UpdateJournalEntry ¶
Click to show internal directories.
Click to hide internal directories.