mes_rep

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageRepository

func NewMessageRepository(db *sql.DB) message.Repository

Types

type MessageRepository

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

func (*MessageRepository) Create

func (r *MessageRepository) Create(message *model.Message) error

func (*MessageRepository) Edit

func (r *MessageRepository) Edit(message *model.Message) error

func (*MessageRepository) List

func (r *MessageRepository) List(chatId int64) ([]*model.Message, error)

func (*MessageRepository) UpdateStatus

func (r *MessageRepository) UpdateStatus(chatId int64, userId int64) error

Jump to

Keyboard shortcuts

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