repository

package
v0.0.0-...-e38fc80 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package repository contains repositories for entities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageBatch

type MessageBatch interface {
	CreateMessage(*model.Message)
	Len() int
}

MessageBatch represents behavior of batch for message entity

type MessageRepository

type MessageRepository interface {
	NewBatch() MessageBatch
	SendBatch(context.Context, MessageBatch) error
}

MessageRepository represents behavior for message entity repository

func NewPostgresMessageRepository

func NewPostgresMessageRepository(p *pgxpool.Pool) MessageRepository

NewPostgresMessageRepository builds new postgres repository for Message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳