chat

package
v0.0.0-...-8c446f2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CtxUserKey = "chat"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatRepository

type ChatRepository interface {
	SetUserOnlineStatus(ctx context.Context, userID string, isOnline bool) error
	CreateMsg(ctx context.Context, m *models.Messages) error
	GetMsg(ctx context.Context, sender string, sender_ip string, recipient string) (*models.Messages, error)
}

type UseCase

type UseCase interface {
	SetUserOnlineStatus(ctx context.Context, userID string, isOnline bool) error
	CreateMsg(ctx context.Context, m *models.Messages) error
	GetMsg(
		ctx context.Context,
		sender string,
		sender_ip string,
		recipient string,
	) (*models.Messages, error)
}

Directories

Path Synopsis
delivery
repository

Jump to

Keyboard shortcuts

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