repository

package
v0.0.0-...-e384ca1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat interface {
	Create(user *model.Chat) (string, error)
	GetAllForUser(userId string) ([]*model.Chat, error)
	GetById(chatId string) (*model.Chat, error)
	ExistenceCheck(chatId string) error
}

type Message

type Message interface {
	Create(message *model.Message) (string, error)
	GetAllForChat(chatId string) ([]*model.Message, error)
}

type Repository

type Repository struct {
	User
	Chat
	Message
}

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

type User

type User interface {
	Create(user *model.User) (string, error)
	ExistenceCheck(userId string) error
}

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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