repository

package
v0.0.0-...-8314da0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MessageChannel = "message"

Variables

Functions

This section is empty.

Types

type MessageRepository

type MessageRepository struct {
	// contains filtered or unexported fields
}

func NewMessageRepository

func NewMessageRepository(redis *redis.Client) *MessageRepository

func (*MessageRepository) PublishMessage

func (r *MessageRepository) PublishMessage(ctx context.Context, message *entity.Message) error

func (*MessageRepository) SubscribeMessage

func (r *MessageRepository) SubscribeMessage(ctx context.Context, channel chan<- *entity.Message)

Jump to

Keyboard shortcuts

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