datastores

package
v0.0.0-...-958c19f Latest Latest
Warning

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

Go to latest
Published: May 29, 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 CommonDatastore

type CommonDatastore interface {
	// Operation creates an operation and returns the operation id or an error
	GetMessages(ctx context.Context, roomId int64, afterMessageId uint64) ([]entities.Message, error)
	GetRooms(ctx context.Context, userId int64) ([]entities.Room, error)
	WriteMessage(context.Context, *entities.Message) (int64, error)
}

CommonStorage datastorage

func NewCommonDatastorePGSql

func NewCommonDatastorePGSql(db *pgxpool.Pool) CommonDatastore

NewcommonDatastorePGSql get operation external api

Jump to

Keyboard shortcuts

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