dao

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	LogRepo LogRepo
}

func NewDataStore

func NewDataStore(client *mongo.Client) DataStore

type LogRepo

type LogRepo interface {
	Insert(entry models.LogEntry) error
	All() ([]*models.LogEntry, error)
}

#TODO move interfaces into own package?

Directories

Path Synopsis
Package mock_dao is a generated GoMock package.
Package mock_dao is a generated GoMock package.

Jump to

Keyboard shortcuts

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