Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultStoragePath = "../db-data/filestore"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMessageRepository ¶
func NewFileMessageRepository ¶
func NewFileMessageRepository() *FileMessageRepository[model.Message]
func (*FileMessageRepository[T]) FindByTopic ¶
func (r *FileMessageRepository[T]) FindByTopic(topic string) ([]model.Message, error)
type MongoMessageRepository ¶
func NewMongoMessageRepository ¶
func NewMongoMessageRepository(client *mongo.Client) *MongoMessageRepository[model.Message]
func (*MongoMessageRepository[T]) FindByTopic ¶
func (r *MongoMessageRepository[T]) FindByTopic(topic string) ([]model.Message, error)
Click to show internal directories.
Click to hide internal directories.