testdomain

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookCategory

type BookCategory struct {
	System         *SystemInstance
	BookCategoryId int
	DBBookCategory *model.BookCategory
}

func CreateBookCategory

func CreateBookCategory(system *SystemInstance, categoryName string) (*BookCategory, error)

func (*BookCategory) ClearCacheData

func (b *BookCategory) ClearCacheData(ctx context.Context)

func (*BookCategory) ClearData

func (b *BookCategory) ClearData(ctx context.Context)

func (*BookCategory) VerifyBookCategoryExists

func (b *BookCategory) VerifyBookCategoryExists() bool

func (*BookCategory) VerifyBookCategoryIsCached

func (b *BookCategory) VerifyBookCategoryIsCached(ctx context.Context) bool

type SystemInstance

type SystemInstance struct {
	Ctx                    context.Context
	DB                     *gorm.DB
	BookCategoryCacheStore stats.StatsCacheStore
	BookCategoryRepo       datarepo.CachedRepository
}

Jump to

Keyboard shortcuts

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