database

package
v0.0.0-...-500edce Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(addr string, user string, password string, dbName string) (*pg.DB, error)

Connect connects to the database and checks the connection.

func NewConversationRepository

func NewConversationRepository(dbSession *pg.DB) core.ConversationRepo

NewConversationRepository creates new object that implements core.ConversationRepo.

func NewMessageRepository

func NewMessageRepository(dbSession *pg.DB) core.MessageRepo

NewMessageRepository creates new instance of a type that implements core.MessageRepo

func NewUserRepository

func NewUserRepository(dbSession *pg.DB) core.UserRepo

NewUserRepository creates new instance of a type that implements core.UserRepo

Types

This section is empty.

Jump to

Keyboard shortcuts

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