pgx

package
v0.0.0-...-f5351b0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 7 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 struct {
	// contains filtered or unexported fields
}

func NewChatRepository

func NewChatRepository(pool *pgxpool.Pool, log *zap.Logger) *ChatRepository

func (*ChatRepository) CreateChat

func (c *ChatRepository) CreateChat(ctx context.Context, id int64, chatType model.ChatType) error

func (*ChatRepository) DeleteChat

func (c *ChatRepository) DeleteChat(ctx context.Context, id int64) error

func (*ChatRepository) GetChatsWithNoMessageInIt

func (c *ChatRepository) GetChatsWithNoMessageInIt(ctx context.Context, date time.Time, msg string) ([]int64, error)

func (*ChatRepository) GetConsumersIDs

func (c *ChatRepository) GetConsumersIDs(ctx context.Context) ([]int64, error)

func (*ChatRepository) SafeThatMessageHadBeenSend

func (c *ChatRepository) SafeThatMessageHadBeenSend(ctx context.Context, id int64, date time.Time, msg string) error

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(pool *pgxpool.Pool, log *zap.Logger) *Storage

func (*Storage) Chat

func (s *Storage) Chat() storage.ChatRepository

Jump to

Keyboard shortcuts

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