storage

package
v0.0.0-...-9bdd6bf Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatRepository

type ChatRepository interface {
	Save(data models.Chat) error
	Get(chatId int64) (models.Chat, error)
	Delete(chat models.Chat) error
	All() ([]models.Chat, error)
}

type Repositories

type Repositories struct {
	Chats ChatRepository
}

func NewRepositories

func NewRepositories(db *storm.DB, dbPostgres *sqlx.DB) *Repositories

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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