Documentation ¶
Index ¶
- type PostgresStore
- func (s *PostgresStore) CreateWeatherReport(w *types.WeatherReport) error
- func (s *PostgresStore) DeleteWeatherReport(id uuid.UUID) error
- func (s *PostgresStore) GetWeatherReportByID(id uuid.UUID) (*types.WeatherReport, error)
- func (s *PostgresStore) GetWeatherReports() ([]*types.WeatherReport, error)
- func (s *PostgresStore) Init() error
- func (s *PostgresStore) UpdateWeatherReport(w *types.WeatherReport) 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 NewPostgressStore ¶
func NewPostgressStore(connectionString string) (*PostgresStore, error)
func (*PostgresStore) CreateWeatherReport ¶
func (s *PostgresStore) CreateWeatherReport(w *types.WeatherReport) error
func (*PostgresStore) DeleteWeatherReport ¶
func (s *PostgresStore) DeleteWeatherReport(id uuid.UUID) error
func (*PostgresStore) GetWeatherReportByID ¶
func (s *PostgresStore) GetWeatherReportByID(id uuid.UUID) (*types.WeatherReport, error)
func (*PostgresStore) GetWeatherReports ¶
func (s *PostgresStore) GetWeatherReports() ([]*types.WeatherReport, error)
func (*PostgresStore) Init ¶
func (s *PostgresStore) Init() error
func (*PostgresStore) UpdateWeatherReport ¶
func (s *PostgresStore) UpdateWeatherReport(w *types.WeatherReport) error
type Storage ¶
type Storage interface { CreateWeatherReport(*types.WeatherReport) error DeleteWeatherReport(uuid.UUID) error UpdateWeatherReport(*types.WeatherReport) error GetWeatherReports() ([]*types.WeatherReport, error) GetWeatherReportByID(id uuid.UUID) (*types.WeatherReport, error) }
Click to show internal directories.
Click to hide internal directories.