storage

package
v0.0.0-...-5b6e3bb Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 3 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
	Users UserRepository
}

func NewRepositories

func NewRepositories(db *storm.DB) *Repositories

type UserRepository

type UserRepository interface {
	Save(data models.User) error
	Get(chatId int64) (models.User, error)
	GetByUsername(username string) (models.User, error)
	Delete(chat models.User) error
	All() ([]models.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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