mongo

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogRepoImpl

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

func NewLogRepo

func NewLogRepo(client *mongo.Client) *LogRepoImpl

func (*LogRepoImpl) All

func (l *LogRepoImpl) All() ([]*models.LogEntry, error)

func (*LogRepoImpl) GetOne

func (l *LogRepoImpl) GetOne(id string) (*models.LogEntry, error)

func (*LogRepoImpl) Insert

func (l *LogRepoImpl) Insert(entry models.LogEntry) error

Jump to

Keyboard shortcuts

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