Documentation ¶
Index ¶
- type PostgresStore
- func (s *PostgresStore) CreateToDo(todo *models.ToDo) error
- func (s *PostgresStore) DeleteToDo(id int) error
- func (s *PostgresStore) GetToDoById(id int) (*models.ToDo, error)
- func (s *PostgresStore) GetTodos() ([]*models.ToDo, error)
- func (s *PostgresStore) Init() error
- func (s *PostgresStore) UpdateToDo(id int, updateTodo *models.ToDo) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func NewPostgresStore ¶
func NewPostgresStore() (*PostgresStore, error)
func (*PostgresStore) CreateToDo ¶
func (s *PostgresStore) CreateToDo(todo *models.ToDo) error
func (*PostgresStore) DeleteToDo ¶
func (s *PostgresStore) DeleteToDo(id int) error
func (*PostgresStore) GetToDoById ¶
func (s *PostgresStore) GetToDoById(id int) (*models.ToDo, error)
func (*PostgresStore) Init ¶
func (s *PostgresStore) Init() error
func (*PostgresStore) UpdateToDo ¶
func (s *PostgresStore) UpdateToDo(id int, updateTodo *models.ToDo) error
Click to show internal directories.
Click to hide internal directories.