repository

package
v0.0.0-...-2a92847 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(cfg Config) (*mongo.Collection, error)

Types

type Config

type Config struct {
	Host       string
	Port       string
	Username   string
	Password   string
	DataBase   string
	Collection string
}

type Logs

type Logs interface {
	SaveLogs(message *kafka.Message)
}

type LogsMongo

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

func NewLogsMongo

func NewLogsMongo(db *mongo.Collection) *LogsMongo

func (*LogsMongo) SaveLogs

func (l *LogsMongo) SaveLogs(message *kafka.Message)

type Repository

type Repository struct {
	Logs
}

func NewRepository

func NewRepository(db *mongo.Collection) *Repository

Jump to

Keyboard shortcuts

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