database

package
v0.0.0-...-17607b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	DB *gorm.DB
}

func (*Client) CreateWeather

func (c *Client) CreateWeather(weather *models.Weather) (*models.Weather, error)

func (*Client) Migrate

func (c *Client) Migrate()

type DatabaseClient

type DatabaseClient interface {
	Migrate()

	CreateWeather(*models.Weather) (*models.Weather, error)
}

func NewDatabaseClient

func NewDatabaseClient() (DatabaseClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL