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
Click to show internal directories.
Click to hide internal directories.