Documentation ¶
Overview ¶
Copyright © 2023 Verifa <info@verifa.io> SPDX-License-Identifier: Apache-2.0
Index ¶
- type Config
- type Store
- func (s *Store) Close() error
- func (s *Store) CreateNote(note *ent.Note) (*ent.Note, error)
- func (s *Store) DeleteNote(id int) error
- func (s *Store) QueryAllNotes() ([]*ent.Note, error)
- func (s *Store) QueryNote(id int) (*ent.Note, error)
- func (s *Store) UpdateNote(id int, note *ent.Note) (*ent.Note, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SessionDuration time.Duration PostgresUser string `split_words:"true"` PostgresPassword string `split_words:"true"` PostgresDbName string `default:"verinotes" split_words:"true"` PostgresHost string `split_words:"true"` PostgresPort string `default:"5432" split_words:"true"` PostgresSslMode string `default:"disable" split_words:"true"` }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewTest ¶
for tests to create a store which is unique per test, idea is to pass in the name of the test as the name of the file
func (*Store) DeleteNote ¶
Click to show internal directories.
Click to hide internal directories.