repository

package
v0.0.0-...-7bc4f86 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogRepository

type ILogRepository interface {
	AddLog(ctx context.Context, in *dto.AddLogReq) (*dto.Log, error)
	GetLogs(ctx context.Context, req *dto.GetLogsReq) (dto.Logs, *paging.Pagination, error)
}

type LogRepo

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

func NewLogRepository

func NewLogRepository(db mongodb.DB) *LogRepo

func (*LogRepo) AddLog

func (r *LogRepo) AddLog(ctx context.Context, in *dto.AddLogReq) (*dto.Log, error)

func (*LogRepo) GetLogs

func (r *LogRepo) GetLogs(ctx context.Context, req *dto.GetLogsReq) (dto.Logs, *paging.Pagination, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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