repository

package
v0.0.0-...-16e1b16 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatRepositoryMySQL

type ChatRepositoryMySQL struct {
	DB      *sql.DB
	Queries *db.Queries
}

func NewChatRepositoryMySQL

func NewChatRepositoryMySQL(dbt *sql.DB) *ChatRepositoryMySQL

func (*ChatRepositoryMySQL) CreateChat

func (c *ChatRepositoryMySQL) CreateChat(ctx context.Context, chat *entity.Chat) error

func (*ChatRepositoryMySQL) FindChatByID

func (c *ChatRepositoryMySQL) FindChatByID(ctx context.Context, id string) (*entity.Chat, error)

func (*ChatRepositoryMySQL) SaveChat

func (c *ChatRepositoryMySQL) SaveChat(ctx context.Context, chat *entity.Chat) error

Jump to

Keyboard shortcuts

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