Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertMeow ¶
InsertMeow - InsertMeow implementation
func SetRepository ¶
func SetRepository(repository Repository)
SetRepository - set the repository connection
Types ¶
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
PostgresRepository postgres implementation for Repository interface
func NewPostgres ¶
func NewPostgres(url string) (*PostgresRepository, error)
NewPostgres creates database connection with Postgres
func (*PostgresRepository) InsertMeow ¶
InsertMeow inserts Meow
Click to show internal directories.
Click to hide internal directories.