repository

package
v1.0.3-lua Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependenciesDB

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

DependenciesDB defines the CRUD operations for storing projects in the db

func NewDependenciesDB

func NewDependenciesDB(log *util.StandardLogger, db *gorm.DB) *DependenciesDB

NewDependenciesDB returns a FileDB object for handling CRUD operations

func (*DependenciesDB) AddDependency

func (l *DependenciesDB) AddDependency(file *domain.File)

AddDependency adds a library to the db

type FileDB

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

FileDB defines the CRUD operations for storing projects in the db

func NewFileDB

func NewFileDB(log *util.StandardLogger, db *gorm.DB) *FileDB

NewFileDB returns a FileDB object for handling CRUD operations

func (*FileDB) AddFile

func (l *FileDB) AddFile(file *domain.File)

AddFile adds a library to the db

func (*FileDB) GetFilesByIDAndCommit

func (l *FileDB) GetFilesByIDAndCommit(id, commit string) []*domain.File

GetFilesByIDAndCommit returns all files for the given id and commit

Jump to

Keyboard shortcuts

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