repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 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 CourseRepository

type CourseRepository interface {
	List() []model.Course
}

type DbCourseRepository

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

func NewCourseRepository

func NewCourseRepository(db *gorm.DB) *DbCourseRepository

func (*DbCourseRepository) List

func (repository *DbCourseRepository) List() []model.Course

type DbTranscriptRepository

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

func NewTranscriptRepository

func NewTranscriptRepository(db *gorm.DB) *DbTranscriptRepository

func (*DbTranscriptRepository) ClearAll

func (repository *DbTranscriptRepository) ClearAll()

func (*DbTranscriptRepository) Save

func (repository *DbTranscriptRepository) Save(course *model.CourseTranscript)

type DbUserRepository

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

func NewUserRepository

func NewUserRepository(db *gorm.DB) *DbUserRepository

func (*DbUserRepository) GetUser

func (repository *DbUserRepository) GetUser() *model.User

type TranscriptRepository

type TranscriptRepository interface {
	ClearAll()
	Save(course *model.CourseTranscript)
}

type UserRepository

type UserRepository interface {
	GetUser() *model.User
}

Jump to

Keyboard shortcuts

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